apply_color
Apply a specified color swatch as fill or stroke to any object in an InDesign document using its index.
Instructions
Apply color to an object
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": {
"objectIndex": "<objectIndex>",
"colorName": "<colorName>"
},
"name": "apply_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| objectIndex | Yes | Object index | |
| colorName | Yes | Color swatch name | |
| colorType | No | FILL |