extract_file_metadata
Parse 3D print files (.gcode, .3mf, .stl, .ufp) to read estimated print time, layer count, filament usage, dimensions, and slicer/material info without re-slicing.
Instructions
Extract metadata from a 3D printing file (.gcode, .3mf, .stl, .ufp).
Parses file headers for estimated print time, layer count, filament usage,
dimensions, slicer info, and material hints — without re-slicing. A
project saved from Bambu Studio, OrcaSlicer or PrusaSlicer also gives the
printer, nozzle size, layer height and material it was set up for; hand
the same file to ``set_printer_model`` to set a saved printer up from it.
.. note::
For multi-object .gcode.3mf files, also consider using
``list_plate_objects()`` to see individual objects on the plate.
Args:
file_path: Path to the print file.
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_file_metadata"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the print file. |