Draw Spline
draw_splineCreate fit-point or control-point splines in the active sketch to define curved geometry through points or along a control polygon.
Instructions
Draw a spline in the most recent sketch. Use fit_points for a curve through points, or control_points for a control-polygon spline.
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": {
"spline_type": "<spline_type>",
"points": "<points>"
},
"name": "draw_spline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| degree | No | Spline degree (only for control_points, 3 or 5) | |
| points | Yes | Array of [x,y] or [x,y,z] points. Ignored: sketch curves lie in the sketch plane. Leave at 0 and use create_sketch(z_offset=...) to move the plane itself. | |
| sketch_name | No | Sketch to draw into (default: the most recent sketch). | |
| spline_type | Yes |