docs_edit_text
Perform exact text replacements in Google Docs with revision-guarded safety. Preview changes without applying, then apply only if revision matches.
Instructions
Preview or apply exact, revision-guarded replacements in one tab.
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>",
"replacements": "<replacements>",
"expected_revision_id": "<expected_revision_id>"
},
"name": "docs_edit_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | ||
| tab_id | No | ||
| document | Yes | ||
| replacements | Yes | ||
| expected_revision_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||