Manage Swatches
manage_swatchesAdd, update, or delete swatches in the active Illustrator document, including CMYK, RGB, grayscale, and none colors, without bringing Illustrator to the foreground.
Instructions
Add, update, or delete swatches in the active document. Runs without activating Illustrator in default background mode; never invokes Computer Use.
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": {
"action": "<action>",
"name": "<name>"
},
"name": "manage_swatches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Swatch name | |
| color | No | Color for add/update (required for add) | |
| action | Yes | Action to perform |