Read document text
docs_readReads a Google Doc's plain text, optionally sliced by index range or capped, and returns per-run index boundaries when requested to target precise edits.
Instructions
Plain text of a document, optionally sliced by index range and capped. Set withIndices to get per-run index boundaries for targeting edits.
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": {
"document": "<document>"
},
"name": "docs_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tab | No | Tab id or title, for documents with several tabs. Reads default to the first tab; writes to a multi-tab document REQUIRE this rather than guessing. Get ids from docs_describe. | |
| account | No | Google account to act as. Optional when one is authorised or a default is set. | |
| document | Yes | Document URL or file id. Both accepted. | |
| endIndex | No | End of the slice, exclusive. | |
| maxChars | No | Character cap. Default 50000. | |
| startIndex | No | Start of the slice to return. Default: the whole body. | |
| withIndices | No | Also return per-run index boundaries, for targeting later edits precisely. |