draw_line
Draws a line between two points on a specified layer and frame in an Aseprite sprite file.
Instructions
Draw a line between two points on a specific layer and frame
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": {
"filePath": "<filePath>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>",
"color": "<color>"
},
"name": "draw_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Sprite file | |
| layerName | No | Target layer name | |
| frameNumber | No | Frame number (1-indexed, default: 1) | |
| x1 | Yes | Start X | |
| y1 | Yes | Start Y | |
| x2 | Yes | End X | |
| y2 | Yes | End Y | |
| color | Yes | Color as hex string (#RRGGBB), palette index, or {r,g,b,a} | |
| thickness | No | Line thickness in pixels (default: 1). Uses native Aseprite brush when > 1. | |
| savePath | No | Path to save |