plan_print_recovery
Plan a recovery strategy for a failed 3D print from the printer name, job ID, and failure type, using the latest checkpoint to return actionable resume or recovery steps.
Instructions
Plan a recovery strategy from a printer + job + failure type.
Convenience wrapper that synthesizes a :class:`FailureReport` from
the supplied args (using the latest checkpoint for the printer/job
when available) and runs it through the same planner used by
``plan_failure_recovery``.
**Which recovery tool to use:**
- Have a printer_name + job_id from a failed print? → ``plan_print_recovery`` (this tool)
- Have a failure_id from ``detect_print_failure``? → ``plan_failure_recovery``
Args:
printer_name: Name of the printer that failed.
job_id: The failed job's identifier.
failure_type: Type of failure (thermal_runaway, layer_shift,
adhesion_failure, filament_runout, nozzle_clog,
communication_loss, power_loss, blob_detected, spaghetti,
stringing, warping). Defaults to ``communication_loss``.
part_attached: Your word on whether the half-printed part is still
stuck to the plate (true / false). Left out, a resume Kiln
would build is held back and the plan says so.
try_untested_resume: Opt this printer in to a resume Kiln has not
yet seen work on its model; Kiln learns from how it goes.
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": {
"printer_name": "<printer_name>",
"job_id": "<job_id>"
},
"name": "plan_print_recovery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The failed job's identifier. | |
| failure_type | No | Type of failure (thermal_runaway, layer_shift, adhesion_failure, filament_runout, nozzle_clog, communication_loss, power_loss, blob_detected, spaghetti, stringing, warping). Defaults to ``communication_loss``. | |
| printer_name | Yes | Name of the printer that failed. | |
| part_attached | No | Your word on whether the half-printed part is still stuck to the plate (true / false). Left out, a resume Kiln would build is held back and the plan says so. | |
| try_untested_resume | No | Opt this printer in to a resume Kiln has not yet seen work on its model; Kiln learns from how it goes. Default: false. |