draw_line
Create a straight line segment by specifying start and end coordinates, with optional color, layer, and linetype, to add precise geometry to CAD drawings.
Instructions
Draw a straight line segment.
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": {
"start": "<start>",
"end": "<end>"
},
"name": "draw_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | [x, y] or [x, y, z] | |
| color | No | ACI 0-256 or name (red, yellow, green, cyan, blue, magenta, white, bylayer) | |
| layer | No | Target layer (created if missing). Default: current layer. | |
| start | Yes | [x, y] or [x, y, z] | |
| linetype | No | Linetype name, e.g. CONTINUOUS, DASHED, CENTER, HIDDEN |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||