generate_palette
Generate color palettes using HSL ramp, Leonardo, manual hex, or import from existing tokens. Returns tonal scales with contrast metadata.
Instructions
Generate color palettes using pluggable strategies. Supports HSL ramp (built-in), Leonardo (optional), manual hex values, or importing from existing tokens. Returns tonal scales with contrast metadata.
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": {
"scales": "<scales>"
},
"name": "generate_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps | No | Comma-separated step values, e.g. '0,100,200,...,900'. Default: 0,50,100,...,950 (19 steps). | |
| scales | Yes | Scale definitions. Simple format: 'brand:220:0.7, neutral:0:0.05' (name:hue:saturation). Or full JSON: [{"name":"brand","hue":220,"saturation":0.7}] | |
| smooth | No | Enable smoothing for Leonardo strategy. Default: true. | |
| strategy | No | Palette generation strategy. Default: hsl. | |
| colorSpace | No | Color space for Leonardo strategy (e.g. 'CAM02', 'LAB'). Default: CAM02. |