docs_get
Retrieve a Google Doc as structured JSON, including title, paragraphs with style and indices, and full text. Use it before editing to understand the document layout.
Instructions
Read a Google Doc and return its structure as JSON.
Returns title, list of paragraphs (with text, style, start/end indices), and the full plain text. Use this before editing to understand the document.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"doc_id": "<doc_id>"
},
"name": "docs_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | Google Doc ID (from the URL: /document/d/{DOC_ID}/edit) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |