text_applyCharStyle
Apply a character style to a range of characters within a paragraph for precise inline text formatting in InDesign. Specify story, paragraph, start/end positions, and style name.
Instructions
Apply a character style to a range of characters within 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>",
"startChar": "<startChar>",
"endChar": "<endChar>",
"styleName": "<styleName>"
},
"name": "text_applyCharStyle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endChar | Yes | ||
| startChar | Yes | ||
| styleName | Yes | ||
| 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 |