color_swatch_create
Create a new color swatch in an open InDesign document by defining its name, color model, and channel values.
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>",
"model": "<model>"
},
"name": "color_swatch_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| red | No | ||
| blue | No | ||
| cyan | No | ||
| name | Yes | ||
| black | No | ||
| green | No | ||
| model | Yes | ||
| yellow | No | ||
| magenta | No | ||
| colorType | No | process | |
| document_id | No | Which open document to act on: a name (see document_listOpen) or a 0-based index. Defaults to the front document. |