find_replace_text
Find and replace text in InDesign documents, supporting case-sensitive, whole-word, and regex matches across document, story, or selection.
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 |