cleanup_lines
Removes L-shaped doubled pixels from 1 px lines to make them pixel-perfect, preserving real square corners and avoiding dents in outlines.
Instructions
Make 1 px lines pixel-perfect: remove L-shaped 'doubles'.
A line drawn with a mouse or from shapes often has a pixel at each step where two would touch only at a corner; that makes the line look thick and jagged. This finds those pixels (keeping real square corners of boxes and frames) and removes the one that evens out the step lengths. A removed outline pixel takes the colour beside it (fill inside, empty outside), so the shape is not dented.
Args: filename: Aseprite file layer_name: Image layer ("" = topmost, "*" = all image layers; a group = its layers) frames: "" or "all" = every frame, or "3", "1-4", "1,3,6-8" colors: Only clean lines of these hex colours (default: the colours used as 1 px lines - outlines and detail lines; fills are never touched) dry_run: Report what would change without writing
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": {
"filename": "<filename>"
},
"name": "cleanup_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| colors | No | ||
| frames | No | ||
| dry_run | No | ||
| filename | Yes | ||
| layer_name | No |