recolor_variants
Batch-recolor sprite colors into named team or seasonal variants, export one comparison strip per variant to a directory, and report unmatched colors while leaving the source untouched.
Instructions
Recolor the sprite into team colors or seasons in one batch. variants maps
each variant's name to a color swap, like {"red": {"#3050c0": "#c03030"}, "green": {"#3050c0": "#30a040"}}. Writes one strip <name>_<variant>.png per
variant into output_dir, frames left to right, and returns a picture comparing
them. Colors must match exactly, and any that were never found are listed in
unmatched. Leaves the sprite untouched. tag limits it to one animation.
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": {
"variants": "<variants>",
"output_dir": "<output_dir>"
},
"name": "recolor_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| file | No | ||
| name | No | ||
| variants | Yes | ||
| output_dir | Yes |