get_gcode_metrics
Analyze a PrusaSlicer G-code file to get print time, filament usage, cost, layer count, and profiles for estimating and validating a print.
Instructions
Print time, filament (mm, cm³, g), cost, layers and profiles of a PrusaSlicer G-code.
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": {
"gcode_path": "<gcode_path>"
},
"name": "get_gcode_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gcode_path | Yes |