extract_model_from_3mf
Extracts the embedded 3D model from a .3mf or .gcode.3mf file and writes it to binary STL for slicing or multi-copy printing. Merges multiple mesh objects into one file.
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 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.
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": {
"file_path": "<file_path>"
},
"name": "extract_model_from_3mf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the .3mf or .gcode.3mf file. | |
| output_path | No | Output STL path (auto-generated if empty). Default: "". |