grep_replace
Find and replace text across Adobe InDesign documents, stories, or selections using GREP patterns to update content precisely.
Instructions
Find and replace text using GREP pattern
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": {
"grepWhat": "<grepWhat>",
"replaceWith": "<replaceWith>"
},
"name": "grep_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | document | |
| grepWhat | Yes | ||
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. | |
| replaceWith | Yes |