manage_palette
Inspect, edit, and load palettes, generate hue-shifted shading ramps, extract unique colors, or quantize RGB pixels with ordered dithering to keep pixel art color-consistent.
Instructions
Inspect/edit palette, load retro presets, generate hue-shifted shading ramps (generate_ramp), extract unique colors from pixels (extract), or quantize RGB pixels to a palette with optional ordered dithering (quantize).
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": {
"file": "<file>",
"action": "<action>"
},
"name": "manage_palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | For generate_ramp: optional end hex color (pair with 'from'). | |
| file | Yes | ||
| from | No | For generate_ramp: optional start hex color (pair with 'to'). | |
| name | No | Preset name (for load_preset or quantize). | |
| apply | No | For extract: replace sprite palette with extracted colors (default false). | |
| frame | No | Optional frame filter (for extract/quantize, default 'all'). | |
| layer | No | Optional layer filter (for extract/quantize). | |
| remap | No | Snap existing RGB pixels to nearest preset colors (for load_preset). | |
| steps | No | For generate_ramp: number of colors (default 5). | |
| action | Yes | ||
| append | No | For generate_ramp: append generated ramp to sprite palette (default false). | |
| colors | No | Hex colors (for set/add/quantize). | |
| dither | No | For quantize: ordered dithering (default 'none'). | |
| source | No | For read-only calls (get, generate_ramp without append, extract without apply). | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). | |
| strength | No | For quantize: dither strength 0..1 (default 0.35). | |
| baseColor | No | For generate_ramp: midtone base hex color. | |
| maxColors | No | For extract: max colors to return (default 64). | |
| shadowShift | No | For generate_ramp: hue shift toward shadows in degrees (default -25). | |
| highlightShift | No | For generate_ramp: hue shift toward highlights in degrees (default +20). | |
| saturationBoost | No | For generate_ramp: saturation shift in shadows (default 0.12). | |
| shadowLightness | No | For generate_ramp: darkest lightness 0..1. | |
| highlightLightness | No | For generate_ramp: brightest lightness 0..1. | |
| keepTransparentSlot | No | Preserve slot 0 transparent in indexed mode (for set/extract, default true). |