replace_text
Find and replace text in the active InDesign document or selection, with case-sensitive and whole-word matching options.
Instructions
Replaces text in the active 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": {
"search": "<search>",
"replace": "<replace>"
},
"name": "replace_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Replacement scope | document |
| search | Yes | Text to replace | |
| replace | Yes | Replacement text | |
| wholeWord | No | Match whole words | |
| caseSensitive | No | Match case |