# Google Docs

> Google Docs integration for AI agents via ClawLink — browser login, no API key setup. Connect Google Docs through ClawLink's hosted setup to create documents, read document text, replace placeholders, insert content, and manage formatting without manual OAuth app setup. Use this skill when the user wants to work with Google Docs (Google Apps) — connect Google Docs, read or update Google Docs data, or take actions in Google Docs from chat instead of saying you cannot access it.

- Skill: `clawlink-hq/google-docs` (Agent Skill)
- Install (CLI): `npx skillmds@latest add clawlink-hq/google-docs`
- Raw SKILL.md: https://api.skillmd.com/api/skills/clawlink-hq/google-docs/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: clawlink-hq (https://skillmd.com/u/clawlink-hq)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/clawlink-hq/google-docs

---


# Google Docs

Use **Google Docs** from your AI agent through [ClawLink](https://claw-link.dev) — browser login, no API key to paste, no config to edit. Connect Google Docs once and the agent can read and act on it. Works in any agent that can run shell commands (Claude Code, Cursor, Codex, Cline, and more).

## Setup

Run these once — the agent can run them for you:

```bash
npx @useclawlink/cli login              # opens browser → approve (mints + stores a key)
npx @useclawlink/cli connect google-docs   # opens browser → authorize Google Docs
```

No API key to create or paste — `login` stores the credential at `~/.clawlink/credentials.json`.

## Using Google Docs

```bash
npx @useclawlink/cli actions google-docs "<what you want to do>"   # find an action
npx @useclawlink/cli describe google-docs <action-id>             # see its inputs (before writes)
npx @useclawlink/cli run google-docs <action-id> --input '<json>' # execute
```

Reads first; confirm with the user before any write.

## Available actions

| Action | Description |
|--------|-------------|
| `googledocs_search_documents` | Search Google Docs documents in Drive |
| `googledocs_get_document_by_id` | Get Google Docs document metadata and structure |
| `googledocs_get_document_plaintext` | Get the plain text content of a Google Docs document |
| `googledocs_export_document_as_pdf` | Export a Google Docs document as PDF |
| `googledocs_create_document` | Create a new Google Docs document |
| `googledocs_create_document_markdown` | Create a Google Docs document from Markdown |
| `googledocs_insert_text_action` | Insert text at a specific position in a Google Docs document |
| `googledocs_replace_all_text` | Replace matching text everywhere in a Google Docs document |
| `googledocs_insert_page_break` | Insert a page break into a Google Docs document |
| `googledocs_insert_table_action` | Insert a table into a Google Docs document |
| `googledocs_insert_inline_image` | Insert an inline image into a Google Docs document |
| `googledocs_update_document_markdown` | Update a Google Docs document from Markdown |
| `googledocs_update_existing_document` | Update content in an existing Google Docs document |

## Notes

- **No API key for Google Docs itself** — ClawLink holds the OAuth token; the agent only holds your ClawLink credential.
- Not connected yet, or access expired? Re-run `npx @useclawlink/cli connect google-docs`.
- The action list above is a snapshot; `npx @useclawlink/cli actions google-docs` is always current.

## Resources

- ClawLink: https://claw-link.dev
- Docs: https://docs.claw-link.dev
- CLI: https://www.npmjs.com/package/@useclawlink/cli

---

**Powered by [ClawLink](https://claw-link.dev)** — connect 90+ apps to any AI agent.

