Geometry Convert
geometry_convertConverts 3D model files between STEP, IGES, BREP, STL, and GLB while reporting conversion losses such as lost exact surfaces, units, axes, and assembly data.
Instructions
Convert a 3D model file to another format and report what the conversion lost. Input: STEP/IGES/BREP (.step .stp .iges .igs .brep, read in millimetres) or an STL mesh (.stl, binary or ASCII, read as millimetres). Output 'step', 'brep' (exact, from STEP/IGES/BREP only), 'stl' (binary, millimetres) or 'glb' (glTF binary: metres and +Y up, the conversion is applied). STL as input converts to 'stl' or 'glb' only: a mesh is not a solid and is never turned into STEP or BREP. The converted file is an artifact with its sha256; the input is never modified. Mesh outputs tessellate the exact surfaces to triangles within mesh_deflection. Returns volume_in, volume_out and volume_relative_change (read back from the written file; no volume for a shell, a solid whose shell is open, loose faces beside solids, or an open mesh: then surface_area_out is the primary value), triangle_count for mesh outputs, and data.losses: every loss in plain words (exact surfaces become triangles, units converted, GLB axes, names/colours/assembly dropped, float32 precision). Needs the optional cad engine for STEP/IGES/BREP input or output (uv sync --extra cad); STL to STL or GLB needs no engine.
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": {
"input_path": "<input_path>",
"output_format": "<output_format>"
},
"name": "geometry_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Stem of the output file and product name: 1 to 64 letters, digits, '_' or '-'. Empty = the input file's stem | |
| input_path | Yes | Path to the model: .step .stp .iges .igs .brep or .stl, at most 100 MB | |
| output_format | Yes | 'step', 'stl', 'glb' or 'brep'. An STL input can only go to 'stl' or 'glb' | |
| mesh_deflection | No | Chord error of the tessellation for stl/glb output of a STEP/IGES/BREP, 0.001 mm to 100 mm, e.g. '0.01 mm' | 0.01 mm |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |