Replace text in document
google_docs_replace_textReplace all occurrences of a specific string in a Google Docs document to fill templates or update content. Provide document ID, text to find, and replacement text.
Instructions
Replace all occurrences of a string in a document (template filling).
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": {
"documentId": "<documentId>",
"find": "<find>",
"replace": "<replace>"
},
"name": "google_docs_replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Text to find (e.g. {{name}}). | |
| account | No | Account nickname to use. | |
| replace | Yes | Replacement text. | |
| matchCase | No | Match case (default true). | |
| documentId | Yes | Document ID. |