apply_convolution
Apply blur, sharpen, edge-detection, or other convolution matrices to an Aseprite layer to filter pixels, with optional frame range and region.
Instructions
Run one of Aseprite's convolution matrices (blur, sharpen, edges...) on a layer.
Alpha is filtered too, except on a background layer, which stays opaque. Indexed pixels are filtered through their palette colours and get the nearest entry. A cel left fully transparent is removed, so a later op on that frame in the same batch finds no cel. Every requested frame must have a cel; linked cels are handled like adjust_colors.
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>",
"matrix": "<matrix>"
},
"name": "apply_convolution"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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) | |
| matrix | Yes | Which convolution matrix to run | |
| region | No | Only change pixels inside this canvas rectangle; default the whole cel |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||