Skip to content
Skillpedia
Writing32k · #9159

gws-docs-write

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.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

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.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

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

5 new skills a week. 1 minute to read.

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.

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
#9159
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