palette_swap
Recolor exact colors across all layers and frames by mapping source hex values to target colors, with optional output path. Use it to create character variants, team colors, and seasonal tilesets.
Instructions
Recolor exact colors across all layers and frames, e.g. {"#38b764": "#b13e53"}.
Writes to out_path, or overwrites the source when omitted. Useful for character
variants, team colors and seasonal tilesets.
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": {
"path": "<path>",
"mapping": "<mapping>"
},
"name": "palette_swap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| mapping | Yes | ||
| out_path | No |