google-docs
Google Docs provides CLI access to document content through the gws command—create blank docs, read existing content, append text, and execute structured batch updates against the Docs API. Use this skill for editing document bodies; for file operations like sharing or moving, reach for google-drive instead.
Google Docs lets you read, append text, and run batch edits on Google Docs content via the gws CLI.
AI-generated summary based on this skill's SKILL.md
Install
Open-Curiosity/gini-agent/google-docs · repository language: TypeScript
git clone https://github.com/Open-Curiosity/gini-agent
cp -r gini-agent/skills/google/google-docs ~/.claude/skills/google-docsFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How do I read a Google Doc using google-docs?
Google Docs provides CLI access to read document content through the gws command. You can retrieve and display the body content of existing Google Documents, making it easy to inspect text and structure from the command line without opening the web interface.
Can I append text to Google Docs via CLI?
Yes, google-docs supports appending text to Google Documents through gws CLI commands. You can add content to the end of a document or insert text at specific positions using structured edits against the Docs API.
How do I create new Google Document and populate it?
Google Docs lets you create blank documents and populate them with structured edits via the gws command. After creating a new doc, you can execute batch updates to add text, apply styles, and format content in a single operation.
What batch update operations does google-docs support?
Google Docs supports batch updates including find-and-replace operations, style formatting, heading application, and text insertion. These structured edits run against the Docs API, allowing you to make multiple changes to a document efficiently from the CLI.
Can I apply styles and formatting to Google Docs content?
Yes, google-docs enables you to apply styles, headings, and other formatting through structured batch updates. Use gws CLI commands to format document bodies programmatically without manual web interface interaction.
Is google-docs suitable for file operations like sharing?
Google Docs focuses on document content manipulation—reading, editing, and appending text through the CLI. For file operations like sharing or moving documents, use the google-drive skill instead, which handles those workspace-level tasks.
SKILL.md
rendered from the published skill — quoted content, verbatim
Google Docs
Use gws docs to create blank documents, read existing document content, append text, and run structured batch updates against the Docs v1 API. This is the content surface for Google Docs — for the file as an object (sharing, copying, moving, trashing) use google-drive instead.
Prerequisites
- If this deployment is managed/hosted, the Google credential is already provisioned at sign-in —
gwsis installed and authenticated, so skip the setup flow below and rungwsdirectly. Scopes are fixed at sign-in on a managed deployment: when a call fails withscope requiredor HTTP 401, tell the user which action needs a scope their account wasn't granted, instead of trying to set
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 1 file
skills/google/google-docs/SKILL.md