Extract color palette
extract_paletteExtract a dominant color palette from a local image using k-means clustering and return hex/RGB colors with coverage percentages.
Instructions
Extract the dominant color palette from a local image using k-means clustering. Returns hex/RGB colors with coverage percentages; transparent pixels are ignored.
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": "extract_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Absolute path to a local image on the machine running this MCP server. | |
| color_count | No | Number of palette colors to extract (2-32). Defaults to 8. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | Yes | ||
| source | Yes | ||
| details | No | ||
| operation | Yes |