adjust_colors
Adjust layer colors using Aseprite's HSL, brightness/contrast, and invert filters without changing alpha, with optional frame and region targeting.
Instructions
Adjust the colours of a layer with Aseprite's filters; alpha is never changed.
They run in this order: hue/saturation/lightness (HSL, as percentages), then brightness/contrast, then invert.
Every requested frame must have a cel. A filter removes a cel it leaves fully transparent, so a later op on that frame in the same batch finds no cel. Linked cels change once; one also linked to frames outside the list always gets its own copy, even when nothing changes. Indexed sprites only support invert (each pixel gets the palette entry nearest to its inverted colour): the other adjustments would rewrite the shared palette.
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": {
"path": "<path>",
"layer": "<layer>"
},
"name": "adjust_colors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hue | No | Degrees to turn the hue | |
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| layer | Yes | Layer name, or a 'group/child' path for nested layers | |
| frames | No | Frames: a number, "1-4", "1-4,7" or "all" (1-based) | |
| invert | No | Invert the RGB channels | |
| region | No | Only change pixels inside this canvas rectangle; default the whole cel | |
| contrast | No | Contrast change, -100..100 | |
| lightness | No | Lightness change, -100..100 | |
| brightness | No | Brightness change, -100..100 | |
| saturation | No | Saturation change, -100..100 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||