find_text_in_document
Find and optionally replace text in an InDesign document, with regex, whole-word, and case-sensitive search options.
Instructions
Find text across the entire 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": {
"searchText": "<searchText>"
},
"name": "find_text_in_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| useRegex | No | Use regular expressions | |
| wholeWord | No | Whole word search | |
| searchText | Yes | Text to search for | |
| replaceText | No | Text to replace with (optional) | |
| caseSensitive | No | Case sensitive search |