apply_object_style
Apply an object style to selected InDesign objects by style name, or target a specific page index and object index when nothing is selected.
Instructions
Apply an object style to selected objects
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": {
"styleName": "<styleName>"
},
"name": "apply_object_style"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageIndex | No | Page index | |
| styleName | Yes | Object style name | |
| objectIndex | No | Object index on page (optional if objects selected) |