analyze_colors
Extract dominant colors from an image or region using K-Means clustering in LAB space. Get colors ranked by frequency with human-readable names for design and analysis.
Instructions
Extract dominant colors from an image region using K-Means clustering in LAB color space. Returns colors sorted by frequency with human-readable names from color.pizza.
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": {
"image": "<image>"
},
"name": "analyze_colors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | Number of dominant colors to return (default: 5) | |
| bbox | No | Optional bounding box as [ymin, xmin, ymax, xmax] normalized 0-1000. Defaults to full image. | |
| image | Yes | Path to the image file or URL (http/https) |