Find and replace
sheets_find_replaceFind and replace text across a Google Sheets range, one tab, or all tabs with optional regex, case, and whole-cell matching; preview changes with dry run and return the number of replacements.
Instructions
Find and replace across a range, a tab, or every tab. Optional regex, case and whole-cell matching. Returns the number of occurrences changed. Supports dryRun.
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": {
"spreadsheet": "<spreadsheet>",
"find": "<find>",
"replacement": "<replacement>"
},
"name": "sheets_find_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| find | Yes | Text to find. | |
| range | No | Limit to an A1 range within `sheet`. | |
| sheet | No | Limit to one tab, by title or sheetId. Omit with `range` unset to search every tab. | |
| dryRun | No | When true, returns the exact API request that would be sent plus an impact summary, and sends nothing. | |
| account | No | Google account to act as. Optional when one account is authorised or a default is set; required otherwise. | |
| matchCase | No | ||
| replacement | Yes | Replacement text. | |
| spreadsheet | Yes | Spreadsheet URL or file id. Both accepted; a URL has its id extracted. | |
| searchByRegex | No | Treat `find` as a regular expression. | |
| includeFormulas | No | Also search formula text, not just values. | |
| matchEntireCell | No |