extract_image_colors
Extract dominant colors from image RGBA data and return them as JSON, CSS, or palette output, so agents can turn pixel values into usable color schemes.
Instructions
Extract dominant colors from an image. Input should be image data as an array of RGBA values.
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": {
"imageData": "<imageData>"
},
"name": "extract_image_colors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | Output format | json |
| quality | No | Extraction quality | medium |
| imageData | Yes | Image data with RGBA values (at most 65536 pixels; downscale larger images) | |
| maxColors | No | Maximum number of colors to extract |