docs / capabilities / Import geometry
Import geometry
The import paths preserve the distinction between analytic CAD solids and triangle meshes. The current MCP file importer accepts STEP and STL. The script API also reads native BREP files.
Exact solids and source meshes
import_stepaccepts one STEP or STL source from a public HTTPS URL, a supported client upload, or base64 bytes. It writes and evaluates a starter script and returns the detected format, paths, source code, bounding box, and diagnostics.lib.fromSTEP(path)imports STEP into a B-rep solid.lib.fromBREP(path)reads native BREP topology and analytic surfaces.lib.fromSTL(path)sews STL triangles into topology. When the mesh closes, it can be used as a solid, but its faces remain planar facets. Open STL is rejected by default;allow_openaccepts it as an open shell.lib.meshFromSTL(path)keeps a display-only mesh without B-rep sewing.
The importer reports the selected format and evaluation diagnostics. It does not currently return a separate exact-solid/source-mesh/repair classification, and it does not promise automatic mesh repair.
Formats outside this import path
This source snapshot does not expose IGES import, PLY import, or glTF/GLB as source-mesh import. mesh_to_features separately accepts STL, OBJ, and 3MF for editable reconstruction. GLB is an export format. A format listed in an open change is not available through this source until that change is integrated.
Use the MCP tool reference for exact arguments and return fields.