replace_color
Substitute a chosen color with a new one in pixel art, applying to the whole sprite or specific layers/frames with adjustable color tolerance.
Instructions
Replace one color with another across the entire sprite or a layer/frame.
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": {
"from_color": "<from_color>",
"to_color": "<to_color>"
},
"name": "replace_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | ||
| layer | No | ||
| to_color | Yes | {r,g,b,a} | |
| tolerance | No | Color matching tolerance 0-255 | |
| from_color | Yes | {r,g,b,a} |