extract_palette_from_image
Extracts a median-cut color palette from an external image and sets it as the active Aseprite sprite palette by default. Returns hex colors sorted dark to light for locking concept-art palettes.
Instructions
Extract a palette (median-cut) from an external image file and, by default,
set it as the active sprite's palette — the concept-art → locked-palette step.
Returns the colors as hex, sorted dark→light. Headless: pass file.
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_path": "<image_path>"
},
"name": "extract_palette_from_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| replace | No | ||
| image_path | Yes | ||
| max_colors | No |