Raw Docs batchUpdate
docs_batch_update_rawSends literal Google Docs API v1 request objects to apply full document updates, including inline images, headers, footnotes, and positioned objects. Reorders edits back-to-front; use dryRun first.
Instructions
Send literal Docs API v1 Request objects. Covers the whole API, including inline images, headers and footers, footnotes, bookmarks and positioned objects, which the grouped tools do not wrap. Indices are document-wide and end-exclusive; requests are reordered back-to-front automatically. Use dryRun first.
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>",
"requests": "<requests>"
},
"name": "docs_batch_update_raw"
}
}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. | |
| dryRun | No | Return the exact requests that would be sent, in the order they would be applied, and send nothing. | |
| 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. | |
| requests | Yes | Literal Docs API v1 Request objects, e.g. [{"insertInlineImage": {...}}, {"updateTableCellStyle": {...}}]. Full API coverage, including images, headers/footers, footnotes, bookmarks and positioned objects. Indices are document-wide UTF-16 offsets, end-exclusive, and shift on every edit — this server reorders requests back-to-front automatically, but measure them with docs_find or docs_read first. Use dryRun when unsure. |