palette
Extracts dominant colors from an image as hex codes with each color's share, ignoring transparent pixels; supports 1-16 colors and an optional swatch preview.
Instructions
Dominant colors of an image as hex codes with their share of the picture (most common first). Transparent pixels are ignored. count is 1-16. preview=true returns a swatch strip.
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": {
"path": "<path>"
},
"name": "palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| count | No | ||
| preview | No | ||
| allow_huge | No |