---
name: Google Docs
slug: google-docs
category: Automation
description: Google Docs reads and writes Google Docs files using the Google Workspace CLI. Use it to create, get, and update documents from an agent workflow.
github: "https://github.com/googleworkspace/cli/tree/main/skills/gws-docs"
language: Rust
stars: 30381
forks: 1779
install: "npx degit https://github.com/googleworkspace/cli/tree/main/skills/gws-docs ~/.claude/skills/gws-docs"
installs_to: ~/.claude/skills/gws-docs
source_path: skills/gws-docs/SKILL.md
collection_size: 25
category_size: 1523
collection_url: "https://dirskills.com/collections/googleworkspace/cli"
added: 2026-08-14T07:11:35.896Z
last_synced: 2026-08-14T07:11:35.896Z
canonical_url: "https://dirskills.com/skills/google-docs"
---

# Google Docs

Google Docs reads and writes Google Docs files using the Google Workspace CLI. Use it to create, get, and update documents from an agent workflow.

**Install:**

```bash
npx degit https://github.com/googleworkspace/cli/tree/main/skills/gws-docs ~/.claude/skills/gws-docs
```

## README

# docs (v1)

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

```bash
gws docs <resource> <method> [flags]
```

## Helper Commands

| Command | Description |
|---------|-------------|
| [`+write`](../gws-docs-write/SKILL.md) | 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:

```bash
# 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.
