drive_replace
Replace every occurrence of a text in a Google Doc (all its tabs) in the registered Google Drive folders. Answers how many were replaced; 0 means the text was not found and nothing changed. To change a spreadsheet use drive.update_range.
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": {
"file": "<file>",
"find": "<find>",
"replace": "<replace>"
},
"name": "drive_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Drive id or pasted link of a Google Doc. | |
| find | Yes | The text to look for. | |
| replace | Yes | What to put instead (empty removes the text). | |
| match_case | No | Match upper and lower case exactly (default true). | |
| in_workspace | No | Run this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected. |