gws-docs-write
Helps your agent add text to a Google Docs document. It's useful for updating information or adding notes.
What it does
This command adds text you choose to the end of a Google Doc. It's like pasting something at the end of an existing text.
When to use it
- ✓When you want to add a quick note to an existing document.
- ✓To continue writing text without opening Google Docs.
- ✓When combining information from different sources into one document.
Example of what to ask your AI
“Add 'Reminder: buy bread' to document ID 'XYZ123'.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
You provide the document ID and the text you want to add. The tool finds the document and inserts your text at its end.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add googleworkspace/cli --skill gws-docs-writeOr download just the file:
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-docs-write/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
docs +write
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Append text to a document
Usage
gws docs +write --document <ID> --text <TEXT>
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--document |
✓ | — | Document ID |
--text |
✓ | — | Text to append (plain text) |
Examples
gws docs +write --document DOC_ID --text 'Hello, world!'
Tips
- Text is inserted at the end of the document body.
- For rich formatting, use the raw batchUpdate API instead.
[!CAUTION] This is a write command — confirm with the user before executing.
See Also
- gws-shared — Global flags and auth
- gws-docs — All read and write google docs commands
FAQ
Where is the text added?
The text is always added at the end of the document's main content.
Can I add formatting (bold, italics)?
No, this command only adds plain text. For formatting, you would need to use a more advanced tool.
How do I find the document ID?
The ID is the unique part of your Google Docs link, usually after '/d/' and before '/edit'.
Details
Popularity
- GitHub stars
- 32k
- Ranking position
- #6257
- License
- Apache-2.0
- Updated
- 10/6/2026
Comments
- …
More skills from this repository
gws-admin-reports
Helps your agent get activity reports from Google Workspace. It collects audit and usage data.
googleworkspace/cli
gws-calendar-agenda
Helps your agent see upcoming events across all calendars. It's useful for organizing your schedule and knowing what's coming up.
googleworkspace/cli
gws-calendar-insert
Lets your agent create new events in Google Calendar. It's useful for scheduling appointments and meetings.
googleworkspace/cli
gws-calendar
Allows your agent to manage calendars and events. It's useful for organizing your life and work.
googleworkspace/cli
Similar skills
intent-driven-development
Helps your agent turn ideas into clear, testable plans. Defines criteria to ensure changes are made correctly and safely.
affaan-m/ECC
product-capability
Guides your agent in turning product ideas into clear plans. It defines what needs to be done, the limits, and decisions before development.
affaan-m/ECC
article-writing
Writes long-form content like articles, guides, and blog posts with a unique style. It's useful when you need well-written texts with a consistent voice and credibility.
affaan-m/ECC