Skip to content
Skillpedia
Writing32k · #6258

gws-docs

Lets your agent read and write in Google Docs documents. It's useful for creating, editing, and reviewing texts.

What it does

This tool lets you read and write to your Google Docs. You can create new documents, view the content of an existing document, or add text to it.

When to use it

  • ✓Quickly create a new document.
  • ✓Check the content of a document without opening it.
  • ✓Add information to an existing document.

Example of what to ask your AI

“Create a new document named 'My To-Do List' and add 'Buy milk' to it.”

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/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/googleworkspace/cli/blob/main/skills/gws-docs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

You tell the tool which document you want to access and what to do with it (read, write, or create). It connects to Google Docs to perform the requested action.

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

Or download just the file:

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

Original text by the author, straight from GitHub.

docs (v1)

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

gws docs <resource> <method> [flags]

Helper Commands

Command Description
+write Append text to a document

API Resources

documents

  • batchUpdate — Applies one or more updates to the document. Each request is validated before being applied. If any request is not valid, then the entire request will fail and nothing will be applied. Some requests have replies to give you some information about how they are applied. Other requests do not need to return information; these each return an empty reply. The order of replies matches that of the requests.
  • create — Creates a blank document using the title given in the request. Other fields in the request, including any provided content, are ignored. Returns the created document.
  • get — Gets the latest version of the specified document.

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws docs --help

# Inspect a method's required params, types, and defaults
gws schema docs.<resource>.<method>

Use gws schema output to build your --params and --json flags.

FAQ

How does the tool know which document I want?

You need to provide the document's name or an identifier when you make the request.

Can I edit an entire document?

Currently, the tool is more focused on adding text. For complete edits, you might need to use other options.

Do I need a Google account?

Yes, to access and modify your Google Docs, you need to be logged into your Google account.

Details

Original description by the author

Read and write Google Docs.

repo: googleworkspace/cli

Popularity

GitHub stars
32k
Ranking position
#6258
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