find_and_replace_doc
Search and replace text in Google Docs to update content efficiently. This tool helps users modify documents by finding specific text and replacing it with new content.
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
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 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |