palette
Extract dominant colors, generate hue-shifted shading ramps, or apply preset color sets, then write them to a sprite's color data.
Instructions
Read/extract/generate/set palettes. extract{max}: dominant colors of the sprite or any image path. ramps:[{base,steps?=5,hueShift?=20,contrast?=1}]: hue-shifted shading ramps. colors: hex list/preset. set=true writes colors+extracted+ramps to the sprite palette. No args: current 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": "palette"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| set | No | ||
| path | No | ||
| ramps | No | ||
| colors | No | hex list or preset (pico8|db16|sweetie16|gameboy) | |
| extract | No |