autocad_create_polyline
Draw a 2D polyline through ordered vertices, optionally close it, and assign it to a target CAD layer.
Instructions
Draw a 2D polyline through a list of vertices.
Args: params (CreatePolylineInput): - points (list[Point]): 2-1000 vertices in order. - closed (bool): join last vertex back to first (default false). - layer (str): target layer (default '0').
Returns: str: JSON {"status": "created", "type": "LWPOLYLINE", "handle", "layer"}.
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": {
"params": "<params>"
},
"name": "autocad_create_polyline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |