draw_line
Draw a line on a specified pixel-art layer using coordinates, color, and thickness, then refresh the preview to reflect changes.
Instructions
Draw a line on design/layers/.png; refresh ref preview.
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": {
"name": "<name>",
"slot": "<slot>",
"x0": "<x0>",
"y0": "<y0>",
"x1": "<x1>",
"y1": "<y1>",
"color": "<color>"
},
"name": "draw_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| x1 | Yes | ||
| y0 | Yes | ||
| y1 | Yes | ||
| name | Yes | ||
| slot | Yes | ||
| color | Yes | ||
| scale | No | ||
| plan_id | No | ||
| thickness | No | ||
| output_dir | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||