draw_line
Render a polyline through ordered points on an Aseprite sprite, clipped to the canvas, with configurable color, thickness, layer, frame, and optional closed path.
Instructions
Draw a polyline through the points, clipped to the canvas.
The brush is a thickness x thickness square on every line pixel. Odd sizes are
centred; even sizes reach one pixel further right and down (thickness 2 covers the
pixel and its right/lower neighbours), so a horizontal line is exactly thickness
rows tall.
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>",
"points": "<points>",
"color": "<color>"
},
"name": "draw_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Sprite file. Relative paths resolve against the server root. | |
| blend | No | false: pixels get exactly this colour (transparent erases, except on a background layer, which ignores alpha); true: the colour is alpha-blended over what is there | |
| color | Yes | '#RRGGBB', '#RRGGBBAA' or 'transparent' | |
| frame | No | 1-based frame number | |
| layer | No | Layer name or 'group/child' path; empty = the bottom-most normal layer | |
| closed | No | Also connect the last point to the first | |
| points | Yes | Line vertices as {x, y}, in order | |
| thickness | No | Brush size in pixels | |
| create_cel | No | Add an empty cel when the layer has none in that frame |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||