Labsco
googleworkspace logo

gws-docs-write

โœ“ Officialโ˜… 29,425

by Google ยท part of googleworkspace/cli

Google Docs: Append text to a document.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup
๐Ÿงฐ Not standalone. This skill ships with googleworkspace/cli and only works together with that tool โ€” install the tool first, then add this skill.

This is the playbook your agent receives when the skill activates โ€” you don't need to read it to use the skill, but it's here to audit before installing.

docs +write

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

Append text to a document

Flags

FlagRequiredDefaultDescription
--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