apply_color
Apply a color swatch to an InDesign object's fill or stroke by specifying the object index, color name, and target type.
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 |
|---|---|---|---|
| colorName | Yes | Color swatch name | |
| colorType | No | FILL | |
| frameIndex | No | Target frame or page item index | |
| targetType | No | text | |
| objectIndex | Yes | Object index |