draw_polyline
Draw connected line segments through ordered points in Aseprite, optionally close the shape, and preview the before/after result with changed-pixel stats.
Instructions
Stroke connected line segments through points (ordered [x, y]
pairs); close=True joins the last point back to the first. 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
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": {
"points": "<points>",
"color": "<color>"
},
"name": "draw_polyline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| close | No | ||
| color | Yes | ||
| points | Yes | ||
| preview | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |