recover_power_loss_print
Recover a 3D print interrupted by power loss by assessing the failure, confirming the bed area, and resuming from the failed layer with controlled actions.
Instructions
One-call power-loss recovery for the printer that lost power (Pro).
This tool may ask this computer to act on your printer (upload, start, pause, resume, set a speed preset). It first answers with the actions it wants and why, and runs nothing; call it again with run_actions set to the actions_digest it answered with to carry out exactly those actions through Kiln's own tools here, with every check those tools make.
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": "recover_power_loss_print"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| probe_xy | No | ``[x, y]`` of a confirmed-bare patch of bed. Omit to get the assessment instead of acting. | |
| failure_id | No | From ``detect_print_failure`` — required to actually resume a Klipper print (which print, which layer). Default: "". | |
| gcode_path | No | The sliced file that was printing, with ``failed_layer``: the other way to say which print and which layer to resume, and the only way through Kiln's servers, where a ``failure_id`` (a record on the computer attached to the printer) cannot be read. Default: "". | |
| output_dir | No | Where to write the resume .gcode (default: temp). Default: "". | |
| run_actions | No | Leave empty on the first call: the tool answers with the actions it wants and an actions_digest, and runs nothing. Call again with that digest here to carry out exactly those actions. Default: "". | |
| failed_layer | No | The layer the print had reached when power was lost. Used with ``gcode_path``. Default: 0. | |
| printer_name | No | The printer that lost power. Empty = the sole registered printer. Default: "". | |
| material_type | No | The material, for the overlap the resume rewinds by (default PLA). Used with ``gcode_path``. Default: "PLA". | |
| bare_confirmed | No | Must be True (with ``probe_xy``) to act — your attestation the patch is physically empty. Default: false. | |
| moonraker_config | No | Optional pre-fetched ``configfile.config`` for the hosted path (server can't reach the LAN Moonraker). | |
| prime_extrusion_mm | No | Extruder prime length on resume. Default: 0.0. | |
| probe_clearance_mm | No | Min margin the probe must clear the print by. Default: 5.0. |