Summary
Append plain text to the end of a Google Docs document.
- Requires a document ID and text string; inserts content at the end of the document body
- Write operation that should be confirmed with the user before execution
- For rich text formatting, use the raw batchUpdate API instead
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
Installs: 53.6K | GitHub stars: 32.6K | First seen: Mar 4, 2026


