cad_sketch_polyline
Create a polyline from a sequence of points with automatic coincident joins. Optionally close the loop, apply horizontal/vertical constraints, or ground the first point at origin.
Instructions
Add a chain of lines through points. Auto coincident-joins them; closed=True closes the loop; auto_hv applies horizontal/vertical to axis-aligned segments; ground_first grounds the first point to the origin if it is at (0,0). Returns the line ids.
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": {
"sessionId": "<sessionId>",
"points": "<points>"
},
"name": "cad_sketch_polyline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | ||
| points | Yes | ||
| closed | No | ||
| auto_hv | No | ||
| ground_first | No |