apply_effect
Apply pixel-art shading and color effects—HSL, brightness/contrast, invert, dithering gradients/patterns, gradient rectangles, and 3x3 convolution filters—to Aseprite layers or regions.
Instructions
Apply pixel-art shading & color effects: HSL adjustment, brightness/contrast, color invert, ordered Bayer dithering gradient/pattern, smooth/banded gradient rect, or 3x3 convolution filter.
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>",
"action": "<action>"
},
"name": "apply_effect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Optional region X (default 0). | |
| y | No | Optional region Y (default 0). | |
| hue | No | For adjust_hsl: hue shift in degrees. | |
| bias | No | For convolution: optional additive bias. | |
| file | Yes | Target .aseprite path or '@active' in Live mode. | |
| frame | No | ||
| layer | No | ||
| ratio | No | For dither_pattern: mix ratio of color2 (0..1, default 0.5). | |
| steps | No | For gradient_rect: optional posterize band count. | |
| width | No | Optional region width (default remaining canvas). | |
| action | Yes | ||
| color1 | No | Start/primary color for dither_gradient, dither_pattern, gradient_rect. | |
| color2 | No | End/secondary color for dither_gradient, dither_pattern, gradient_rect. | |
| height | No | Optional region height (default remaining canvas). | |
| kernel | No | For convolution: custom 9-number 3x3 kernel. | |
| matrix | No | Ordered dithering matrix (default 'bayer4x4'). | |
| preset | No | For convolution. | |
| divisor | No | For convolution: optional divisor override. | |
| preview | No | Return an inline PNG preview in the same Aseprite call (true or options object). | |
| contrast | No | For brightness_contrast (-100..100). | |
| direction | No | Gradient direction (default 'vertical'). | |
| lightness | No | For adjust_hsl: lightness delta (-100..100). | |
| brightness | No | For brightness_contrast (-100..100). | |
| saturation | No | For adjust_hsl: saturation delta (-100..100). | |
| maskToSolid | No | Only affect existing non-transparent silhouette pixels (default false). | |
| preserveAlpha | No | For convolution: keep original pixel alpha (default true). |