Delete content ranges
docs_deleteDeletes specified index ranges from a Google Doc, applying end-exclusive ranges back-to-front for safe edits. Use docs_find to get ranges and dryRun to preview requests.
Instructions
Delete index ranges, end-exclusive. Get the ranges from docs_find. Applied back-to-front. Supports dryRun.
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>",
"ranges": "<ranges>"
},
"name": "docs_delete"
}
}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. | |
| ranges | Yes | Ranges to delete, end-exclusive. Get them from docs_find or docs_read withIndices. | |
| 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. |