gws-docs-write
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.
Skill link
https://github.com/googleworkspace/cli/blob/main/skills/gws-docs-write/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Add 'Reminder: buy bread' to document ID 'XYZ123'.”
5 new skills a week. 1 minute to read.
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.
Technical 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
- #9159
- License
- Apache-2.0
- Updated
- 10/6/2026
Comments
- …
More skills from this repository
gws-admin-reports
32kHelps your agent get activity reports from Google Workspace. It collects audit and usage data.
gws-calendar-agenda
32kHelps your agent see upcoming events across all calendars. It's useful for organizing your schedule and knowing what's coming up.
gws-calendar-insert
32kLets your agent create new events in Google Calendar. It's useful for scheduling appointments and meetings.
gws-calendar
32kAllows your agent to manage calendars and events. It's useful for organizing your life and work.
Similar skills
obsidian-vault-maintainer
394kHelps your agent keep an Obsidian-friendly memory vault tidy, with working wiki links, consistent properties, and safe generated sections.
wiki-maintainer
394kHelps your agent maintain an OpenClaw memory wiki with repeatable pages, safe managed blocks, and checks for contradictions or gaps.
obsidian
394kLets your agent read, search, create, and edit Obsidian notes, tasks, links, and properties using the official Obsidian command line.