Skip to content
Skillpedia
Writing32k · #6257

gws-docs-write

Helps your agent add text to a Google Docs document. It's useful for updating information or adding notes.

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.

Example of what to ask your AI

“Add 'Reminder: buy bread' to document ID 'XYZ123'.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/gws-docs-write/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/gws-docs-write/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
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.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add googleworkspace/cli --skill gws-docs-write

Or download just the file:

curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-docs-write/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

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

Original description by the author

Google Docs: Append text to a document.

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#6257
License
Apache-2.0
Updated
10/6/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills