Skip to content
Skillpedia
Writing32k · #9160

gws-docs

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.

Skill link

https://github.com/googleworkspace/cli/blob/main/skills/gws-docs/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/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

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

5 new skills a week. 1 minute to read.

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.

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