replace_color
Replace a specific color in an Aseprite cel with a new color while preserving alpha, using adjustable tolerance to match similar colors.
Instructions
Replace a cel color while preserving alpha and allowing channel tolerance.
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>",
"layer_name": "<layer_name>",
"frame_index": "<frame_index>",
"from_color": "<from_color>",
"to_color": "<to_color>"
},
"name": "replace_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| to_color | Yes | ||
| tolerance | No | ||
| from_color | Yes | ||
| layer_name | Yes | ||
| frame_index | Yes |