find_and_replace_doc
Replace all instances of a word or phrase in a Google Doc with new text, supporting case sensitivity and a preview mode to review changes before finalizing.
Instructions
Finds and replaces text throughout a Google Doc.
Args: user_google_email: User's Google email address document_id: ID of the document to update find_text: Text to search for replace_text: Text to replace with match_case: Whether to match case exactly dry_run: When True (default), return planned mutation without executing it
Returns: str: Confirmation message with replacement count
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": {
"user_google_email": "<user_google_email>",
"document_id": "<document_id>",
"find_text": "<find_text>",
"replace_text": "<replace_text>"
},
"name": "find_and_replace_doc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_google_email | Yes | ||
| document_id | Yes | ||
| find_text | Yes | ||
| replace_text | Yes | ||
| match_case | No | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |