replace_color
Swap one color for another across a single layer or all layers and selected frames in Aseprite, with optional tolerance and inline PNG preview.
Instructions
Swap one color for another across a single layer or all layers ('*') and chosen frames.
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": {
"file": "<file>",
"from": "<from>",
"to": "<to>"
},
"name": "replace_color"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| file | Yes | ||
| from | Yes | ||
| frame | No | Frame(s) (default 'all'). | |
| layer | No | Layer name/path, or '*' / omitted for all editable layers. | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). | |
| tolerance | No |