create_color_swatch
Create a new color swatch in the active InDesign document by specifying its name, color space, and values for use in your design.
Instructions
Creates a new color swatch in the active document.
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>",
"values": "<values>"
},
"name": "create_color_swatch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Color name | |
| model | No | Color model | process |
| values | Yes | Color values (for example, [255, 0, 0] for RGB red) | |
| colorSpace | No | Color space | RGB |