G-code summary
gcode_summaryReads print time, filament grams/metres/cost, layers, colour changes and key settings from an existing .gcode file so you can inspect slicer output without re-slicing.
Instructions
Read the numbers out of an existing .gcode file: print time, filament grams, metres and cost, layers, first-layer time, colour changes, key settings and metres extruded per feature type.
Use it on G-code you already have (from slice_model or another slicer); slice_model already returns these for new slices. Read-only.
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": {
"path": "<path>"
},
"name": "gcode_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a .gcode file on this computer, e.g. one written by slice_model. |