Google Docs
Purpose
Create and mutate Google Docs: create with title/content, read, append at end, or replace body—using documentId from create or from google-drive search.
When to Use
- Create a new Doc with title and optional initial content.
- Read or append to an existing Doc.
- Replace document content wholesale.
When NOT to Use
- Finding an unknown Doc by name → google-drive first for
documentId. - Spreadsheets → google-sheets.
- Skill repo work → create-skill / publish-skill.
Expected Outcome
documentIdreturned on create and reused for subsequent ops.- Read/append/replace confirmed from tool responses.
- No fabricated document text.
Inputs to Gather
documentId(from create or Drive).- Title and initial content for creates.
- Append text or full replacement body as specified.
Workflow
- If
documentIdis unknown, use google-drive (drive_search/drive_get_file) to resolve it. - Create:
docs_create_document(title, optional content) → savedocumentId. - Read:
docs_read_documentwithdocumentId. - Append:
docs_append_textat end when adding content. - Replace:
docs_replace_contentwhen overwriting existing content. - Summarize what changed; cite
documentId.
Domain rules
- Create returns documentId—required for later calls.
- Append vs replace: Append for additions; replace for full rewrites.
- Resolve via Drive when the user references a doc by name only.
Main tools
docs_create_document,docs_read_document,docs_append_text,docs_replace_content
Examples
New PRD doc: docs_create_document with title and first line; return link/id from response.
Append meeting notes: docs_append_text with documentId and user text.
Tool Availability Rules
| Access | Behavior |
|---|---|
| Full tool access | Create, read, append, replace. |
| Read-only | Read only; draft writes for approval. |
| No integration | Do not fabricate document content. |
Related tool sets
google-docs
Review / Decision / Execution Criteria
- Smallest change: append vs replace intentionally.
- Confirm large replacements with the user when appropriate.
Output Format
- Request and
documentId. - Excerpt or confirmation from tools.
- Errors.
- Drive search follow-up if ID was missing.
Quality Bar
- Preserve user wording for append/replace when given verbatim.
- Ground reads in
docs_read_documentoutput.
Safety and Boundaries
- No confidential content in examples.
- Confirm destructive full replace when scope is unclear.
Escalation / Dispatch Rules
- Missing file → google-drive then return here.
- No write access → output planned
docs_*calls.
References
- Legacy:
skills/old_skills.json(google-docs). skills/skill.instruction.md,skills/meta.instructions.md