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
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 |