Extract palette
extract_palettePull main colors from a PNG or JPEG image with median cut, returning hex codes and a GIMP/Aseprite .gpl palette for pixel art projects.
Instructions
Pull the main colours out of an image (median cut). Returns hex codes plus a GIMP/Aseprite .gpl palette.
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": {
"input": "<input>"
},
"name": "extract_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path or URL of a PNG or JPEG image | |
| colors | No | How many colours to extract |