Add Sketch Geometry
add_sketch_geometryAppend lines, circles, arcs, or points to a sketch and return assigned indices for constraint building.
Instructions
Append geometric primitives to a sketch.
items is a list of dicts:
{type: 'line', start: [x,y], end: [x,y], construction?: bool}
{type: 'circle', center: [x,y], radius: float}
{type: 'arc', center: [x,y], radius, start_angle, end_angle} (radians)
{type: 'point', pos: [x,y]} Returns {indices: [...]} — Sketcher-assigned indices for use in constraints.
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": {
"sketch": "<sketch>",
"items": "<items>"
},
"name": "add_sketch_geometry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| sketch | Yes | ||
| workspace | No | Run this call in this named workspace |