
Gws Docs Write
The gws-docs-write skill appends plain text to the end of a Google Docs document using the Google Workspace CLI, requiring only a document ID and the text content to insert. It serves Google Workspace users and developers who need to programmatically add content to documents without manual editing. This skill solves the problem of automating document updates through the command line while maintaining security through prerequisite authentication checks.
- skills.sh installs
- 51.5K
- GitHub stars
- 32.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add googleworkspace/cli --skill gws-docs-write --agent claude-codeInstalls into .claude/skills of the current project.
Files
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
Sponsors
Details
- Repository
- github.com/googleworkspace/cli
- Categories
- Documentation, CLI & Terminal, Office & Documents
More from googleworkspace/cli
All 113- Gws Calendar Agenda50.9K
- Gws Drive Upload50.6K
- Gws Calendar Insert49.5K
- Gws Gmail Triage48.2K
- Gws Sheets Append48K
- Gws Tasks46.3K
- Gws Slides42.9K
- Gws Forms42.4K
- Gws Meet42.2K
- Gws Gmail Read42.1K
- Gws Keep39.9K
- Gws Gmail Watch38.1K
- Gws Gmail Reply36K
- Gws Gmail Forward34.5K
- Gws Workflow34.3K
- Gws Chat33.9K
- Gws People33.8K
- Gws Gmail Reply All33.8K
- Gws Workflow Email To Task33.2K
- Recipe Create Presentation33.1K
- Gws Chat Send32.7K
- Gws Workflow Meeting Prep32.6K
- Gws Workflow Weekly Digest32.3K
- Gws Workflow Standup Report32.3K