gcode_estimate_and_inject
Calculate exact filament length, mass (grams), spool cost, and print time from G-Code, and inject M600/Klipper PAUSE filament swaps at target Z heights.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gcode_estimate_and_inject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Raw G-Code content. | |
| costPerKg | No | ||
| inputPath | No | ||
| diameterMm | No | ||
| outputPath | No | ||
| densityGcm3 | No | ||
| pauseDialect | No | marlin | |
| swapZHeights | No |