Gw docs
Get, create, import, append, and replace text in Google Docs via CLI. Accepts doc IDs or full URLs. Import renders a Markdown file as a native Doc (headings, tables, lists, links). TRIGGERS: "google docs", "google doc", "create doc", "read doc", "append to doc", "replace in doc", "document", "gdoc", "write to doc", "paste into doc", "import markdown to doc", "md to google doc", "render markdown as doc", "open md as google doc"From its SKILL.md
npx -y skills add Elnora-AI/elnora-google-workspace --skill gw-docsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.2 KB, as published. Nobody here has run it
Docs
Invocation
CLI="python3 ${CLAUDE_PLUGIN_ROOT}/cli/gw.py"
Commands
All commands accept a document ID or full Google Docs URL.
$CLI docs get DOC_ID --compact
$CLI docs create --title "Title" [--body "text"] [--body-file path] [--folder FOLDER] --compact
$CLI docs import PATH.md [--title "Title"] [--doc-id DOC_ID] [--folder FOLDER] [--keep-frontmatter] --compact
$CLI docs append DOC_ID --body "text" --compact
$CLI docs append DOC_ID --body-file - <<'BODY'
Multi-line content here.
BODY
$CLI docs replace DOC_ID --find "old" --replace-with "new" --compact
Response Shapes (validated)
get: {"documentId":"1abc...","title":"My Doc","text":"full plain text content","revisionId":"AMHa..."}
create: {"documentId":"1FYi...","title":"Title","url":"https://docs.google.com/document/d/1FYi.../edit"}
import: {"documentId":"1gB2...","title":"Title","url":"https://docs.google.com/document/d/1gB2.../edit?usp=drivesdk"}
append: {"documentId":"1abc...","appended":true,"charactersInserted":22}
replace: {"documentId":"1abc...","replaced":true,"occurrencesChanged":1}
Examples
# Read a doc (by URL)
$CLI docs get "https://docs.google.com/document/d/1bhGOtwf.../edit" --compact
# Create a doc with content from stdin
$CLI docs create --title "Meeting Notes" --body-file - <<'BODY'
Notes from today's meeting.
Action items:
- Follow up with Triin
- Send proposal
BODY
# Import a Markdown file as a native Google Doc (renders headings, bold, lists, tables, links)
$CLI docs import /path/to/notes.md --title "Notes" --compact
# Import directly into a Drive folder (accepts a folder ID or full folder URL)
$CLI docs import /path/to/notes.md --title "Notes" --folder "https://drive.google.com/drive/folders/1rUv-..." --compact
# Re-import into the SAME doc (keeps the ID and shareable link; replaces content)
$CLI docs import /path/to/notes.md --doc-id "1bhGOtwf..." --compact
# Append to an existing doc
$CLI docs append "1bhGOtwf..." --body "New section added."
# Find and replace (case-sensitive)
$CLI docs replace "1bhGOtwf..." --find "DRAFT" --replace-with "FINAL"
UI Verification
After create, append, or replace, verify the document looks correct in Google Docs using Chrome DevTools MCP:
- Open the doc URL returned in the response:
mcp__chrome-devtools__navigate_page → result.url (create) or https://docs.google.com/document/d/{documentId}/edit - Take a screenshot and confirm: title, content, and formatting are as expected.
- If content is wrong, fix it with
docs replaceordocs appendbefore reporting done.
Notes
getreturns plain text only. Formatting, images, and tables are not preserved.create --bodyinserts plain text — Markdown syntax shows as raw characters. To render Markdown (headings, bold, bullet/numbered lists, pipe tables, links) into native Doc formatting, useimportinstead.importconverts a Markdown file on upload via Drive. It strips YAML frontmatter by default (--keep-frontmatterto retain). Without--doc-idit creates a new doc; with--doc-idit replaces that doc's content while preserving the ID and shareable link.importneeds a file path (not inline text); write content to a.mdfile first if needed.--folder(oncreateandimport) puts the doc straight into a Drive folder — pass a folder ID or full folder URL. Without it, docs land in My Drive root. Ignored when--doc-idis set (a replace keeps the existing location). No separate "move" step needed.appendauto-prepends a newline when the doc is non-empty.replaceis case-sensitive and replaces all occurrences.- Use
--body-file -with<<'BODY'heredoc for content with special characters.