replace_color
Replace all pixels of a source color with a target color within a tolerance, on a chosen layer and frame of an Aseprite sprite.
Instructions
Replace every pixel matching from_color (within tolerance per channel)
with to_color, on the chosen 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": {
"filename": "<filename>",
"from_color": "<from_color>",
"to_color": "<to_color>"
},
"name": "replace_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | Default: 1. | |
| layer | No | ||
| filename | Yes | ||
| to_color | Yes | ||
| tolerance | No | Default: 0. | |
| from_color | Yes |