draw_line
Draws a line between two 2D or 3D points in AutoCAD, with optional layer and ACI color settings.
Instructions
Draw a line between two 2D/3D points in AutoCAD 2027.
Args: start_point: [x, y] or [x, y, z] start coordinates. end_point: [x, y] or [x, y, z] end coordinates. layer: Optional layer name (automatically created if it does not exist). color: Optional AutoCAD Color Index (ACI 1=Red, 2=Yellow, 3=Green, 4=Cyan, 5=Blue, 6=Magenta, 7=White).
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_point": "<start_point>",
"end_point": "<end_point>"
},
"name": "draw_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| layer | No | ||
| end_point | Yes | ||
| start_point | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |