add_outline
Adds a 1px color outline around opaque pixels on a layer to improve sprite readability against busy backgrounds; supports selective color-following, diagonal edges, and all frames.
Instructions
Add a 1px outline around the opaque pixels of a layer, in color — readability
against busy backgrounds. selective true ignores color and darkens each
neighbouring pixel's own color instead, for a softer outline that follows the art
(RGB sprites). diagonal true also outlines diagonally (8-connected). layer
picks the layer, and all_frames outlines every cel on it rather than the
active one. One undo step. Headless: pass file.
preview true also returns a before/after picture of the canvas with the changed-pixel count and bbox.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "add_outline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| color | No | #000000 | |
| layer | No | ||
| preview | No | ||
| diagonal | No | ||
| selective | No | ||
| all_frames | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |