create_color_swatch
Add a color swatch to an InDesign document by specifying name, color model, and values. Supports CMYK, RGB, LAB, and spot colors.
Instructions
Create a new color swatch
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": {
"name": "<name>",
"colorValues": "<colorValues>"
},
"name": "create_color_swatch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Swatch name | |
| spotColor | No | Create as spot color | |
| colorModel | No | CMYK | |
| colorValues | Yes | Color values array [C,M,Y,K] or [R,G,B] |