text_getFormatting
Get font, size, style, and character style for each formatting range in a paragraph of an open InDesign document.
Instructions
Get detailed formatting (font, size, style, character style) for each text style range in a paragraph
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>",
"paragraphIndex": "<paragraphIndex>"
},
"name": "text_getFormatting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| paragraphIndex | Yes | ||
| includeControlChars | No | Include BOM/control chars in range text |