outline
Draws a one-pixel border around non-transparent pixels on a layer, with inside/outside placement and optional frame or region limits for sprite edits.
Instructions
Draw a one-pixel outline around the non-transparent shapes of a layer.
Uses Aseprite's Outline filter; the cel grows to make room. With region only pixels inside it change. Background layers are refused (nothing is transparent there). Every requested frame must have a cel; an emptied cel (inside outline with a transparent color) is removed, and linked cels are handled like adjust_colors. Indexed sprites use the palette entry nearest to color.
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>",
"color": "<color>"
},
"name": "outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| color | Yes | '#RRGGBB', '#RRGGBBAA' or 'transparent' | |
| layer | Yes | Layer name, or a 'group/child' path for nested layers | |
| place | No | outside: paint the transparent pixels around shapes; inside: recolour the shapes' own edge pixels | outside |
| frames | No | Frames: a number, "1-4", "1-4,7" or "all" (1-based) | |
| matrix | No | Which neighbours count: circle = 4 sides, square = all 8 | circle |
| region | No | Only change pixels inside this canvas rectangle; default the whole cel |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||