palette_swatch
Render a labeled grid of color swatches as a PNG to visually inspect and compare colors. Accepts hex or RGB values, with optional custom labels.
Instructions
Render a labeled grid of color swatches to a PNG for eyeballing.
Args:
colors: hex strings and/or "r,g,b" triples (1..64 of them).
labels: optional captions, one per color; defaults to each color's
palette name (or its hex when off-palette).
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": {
"colors": "<colors>"
},
"name": "palette_swatch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | Yes | ||
| labels | No |