text_searchFormatting
Locate text ranges in an InDesign story by font family, font style, or point size, returning matching ranges for targeted formatting edits.
Instructions
Find text ranges with specific formatting (font family, style, or size) within a story
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": {
"storyIndex": "<storyIndex>"
},
"name": "text_searchFormatting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| fontStyle | No | Font style to search for (e.g. "Bold", "Italic") | |
| pointSize | No | Font size in points | |
| fontFamily | No | Font family to search for | |
| maxResults | No | ||
| storyIndex | 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. |