PluginBench
Skill
Pass
Audit score 90

gws-docs-write

googleworkspace/cli

Append plain text to the end of a Google Docs document.

What is gws-docs-write?

This skill appends plain text to the end of a Google Docs document using the Google Workspace CLI. Use it when you need to add content to an existing document programmatically.

  • Appends text to the end of a document body
  • Accepts plain text input via command-line flag
  • Requires document ID and text content as parameters
  • Integrates with Google Workspace authentication and global flags

How to install gws-docs-write

npx skills add null --skill gws-docs-write
Prerequisites
  • Google Workspace CLI (gws) installed
  • gws-shared skill configured for authentication
  • Valid Google Docs document ID with write permissions
Claude Code
Cursor
Windsurf
Cline

How to use gws-docs-write

  1. 1.Obtain the Google Docs document ID from the document URL or metadata
  2. 2.Prepare the plain text content you want to append
  3. 3.Run: gws docs +write --document <DOC_ID> --text '<TEXT>'
  4. 4.Confirm the operation when prompted (write command requires user confirmation)

Use cases

Good for
  • Adding log entries or notes to a shared document
  • Appending user-submitted content to a form response document
  • Building automated workflows that update documents with new information
  • Logging agent actions or results to a Google Docs audit trail
Who it's for
  • Developers automating Google Docs workflows
  • Teams using Google Workspace for document management
  • Agents that need to persistently record information

gws-docs-write FAQ

Can I append formatted text or rich content?

No, this skill only supports plain text. For rich formatting (bold, italics, links, etc.), use the raw batchUpdate API instead.

Where does the text get inserted?

Text is always appended at the end of the document body.

Do I need special permissions?

Yes, you need write access to the target Google Docs document and valid Google Workspace authentication configured via gws-shared.

What happens if the document ID is invalid?

The command will fail with an authentication or document not found error from the Google Docs API.

Full instructions (SKILL.md)

Source of truth, from googleworkspace/cli.


name: gws-docs-write description: "Google Docs: Append text to a document." metadata: version: 0.22.5 openclaw: category: "productivity" requires: bins: - gws cliHelp: "gws docs +write --help"

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

Usage

gws docs +write --document <ID> --text <TEXT>

Flags

FlagRequiredDefaultDescription
--documentDocument ID
--textText 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