find_replace_text
Find and replace text in an InDesign document. Specify case sensitivity, whole word matching, or use GREP for pattern-based replacements.
Instructions
Find and replace text in the document
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": {
"findText": "<findText>",
"replaceText": "<replaceText>"
},
"name": "find_replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | document | |
| useGrep | No | Use GREP (regular expressions) | |
| findText | Yes | Text to find | |
| wholeWord | No | Whole word only | |
| replaceText | Yes | Replacement text | |
| caseSensitive | No | Case sensitive search |