Extract palette
extract_palettePull the main colours out of an image (median cut). Returns hex codes plus a GIMP/Aseprite .gpl palette.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | How many colours to extract | |
| image_url | No | Public http(s) URL of a PNG or JPEG (max 4 MB, 2048x2048) | |
| image_base64 | No | PNG or JPEG as base64 (or a data: URL), if there is no public URL |