draw_polyline
Draw a lightweight polyline through a list of vertices, optionally closed, with specified width, layer, and color for AutoCAD geometry creation.
Instructions
Draw a lightweight polyline (LWPOLYLINE) through a sequence of vertices.
Args: vertices: List of [x, y] vertices (at least 2 points). closed: Whether the polyline should be closed. width: Constant global width of the polyline segments. layer: Optional layer name (auto-created if missing). color: Optional ACI color (1-255).
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": "draw_polyline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| layer | No | ||
| width | No | ||
| closed | No | ||
| vertices | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |