draw_line
Draw straight lines between two coordinates in pixel art projects to create shapes, outlines, or connect elements.
Instructions
Draw a line between two points
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": {
"projectId": "<projectId>",
"x0": "<x0>",
"y0": "<y0>",
"x1": "<x1>",
"y1": "<y1>",
"color": "<color>"
},
"name": "draw_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project identifier | |
| layerIndex | No | Layer index (default: 0) | |
| frameIndex | No | Frame index (default: 0) | |
| x0 | Yes | Start X coordinate | |
| y0 | Yes | Start Y coordinate | |
| x1 | Yes | End X coordinate | |
| y1 | Yes | End Y coordinate | |
| color | Yes | Color in hex format | |
| penSize | No | Pen size (default: 1) |