acad_add_polyline
Draws a 2D polyline from coordinate vertices, with optional bulge arcs, closed loops, and constant width for AutoCAD geometry.
Instructions
Add a 2D polyline. vertices: [[x, y], ...] or [[x, y, bulge], ...]. A bulge other than 0 makes an arc to the next vertex (bulge = tan(angle/4)). closed=true joins the last vertex to the first. width_in: constant width along the whole polyline (0 to 100 in). Omit for a hairline.
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": {
"vertices": "<vertices>"
},
"name": "acad_add_polyline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | No | ||
| closed | No | ||
| vertices | Yes | ||
| width_in | No | ||
| color_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||