extract_model_from_3mf
Extract an embedded 3D model from a .3mf or .gcode.3mf file and write it as a binary STL, merging all mesh objects into one.
Instructions
Extract the embedded 3D model from a .3mf or .gcode.3mf file to STL.
3MF files are ZIP archives containing XML mesh geometry. This tool
parses the embedded model, extracts all mesh objects, and writes a
binary STL file ready for slicing, multi-copy printing, or further
mesh operations.
.. note::
For extracting a single object's **G-code** from a multi-object
Bambu .gcode.3mf file, use ``extract_plate_object`` instead.
Use ``list_plate_objects`` to discover available objects.
Works with both standard 3MF files and Bambu Studio .gcode.3mf files
(which bundle both G-code and the source model). When multiple
objects exist they are merged into a single STL.
:param file_path: Path to the .3mf or .gcode.3mf file.
:param output_path: Output STL path (auto-generated if empty).
:returns: Dict with output path, triangle/vertex counts, and dimensions.INLINE 3D STAGE: on success this tool also opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| output_path | No |