draw_polyline
Create a connected chain of sketch lines through ordered points in one call, optionally closing the loop, instead of drawing each segment separately.
Instructions
Add a chain of lines through the points given, in one call (instead of one draw_line per side): each point joins the next, and closed: true also joins the last to the first, so an outline such as an L profile is one call. Exact coordinates, no snapping; lines along x or y get horizontal / vertical relations. In a part, a two-point polyline (one line) that touches nothing when the sketch is closed gets its length as a dimension, as with draw_line. Returns the new entity ids in order.
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": {
"points": "<points>"
},
"name": "draw_polyline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | mm, cm, m, inch or ft | |
| closed | No | true joins the last point back to the first (a closed outline) | |
| points | Yes | The corners in order, e.g. [{'x': 0, 'y': 0}, {'x': 80, 'y': 0}, {'x': 80, 'y': 6}] |