solve_sketch
Convert a 2D sketch of stated relationships into solved coordinates and OpenSCAD geometry, optionally extruded, for design checking and printing.
Instructions
Turn a 2D sketch of stated relationships into solved coordinates and OpenSCAD.
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>"
},
"name": "solve_sketch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch | Yes | The sketch as JSON text: ``{"entities": [...], "constraints": [...]}`` with an optional ``name`` (at most 200 entities, 400 constraints, 256 KB). Each entity has an ``id`` and ``type`` (``point`` x, y; ``line`` a, b; ``circle`` c, r; ``arc`` c, a, b); each constraint an ``id``, ``type``, ``refs`` and, where the type takes one, a ``value``, in the shapes the tool description lays out. | |
| extrude_height | No | How far to extrude the solved outline, in millimetres (0 or more). ``0`` (the default) leaves the emission 2D, with no faces. Default: 0.0. |