detect_print_failure
Analyze printer telemetry and recent history to identify and classify 3D print failures such as thermal runaway, layer shift, filament runout, adhesion loss, or nozzle clogs for recovery planning.
Instructions
Analyze printer telemetry to detect and classify a print failure.
Examines current telemetry data and optional historical snapshots
to identify failure conditions such as thermal runaway, layer shift,
filament runout, adhesion loss, nozzle clogs, and more.
The readings passed here are judged, not announced: a failure
found in them is kept (for ``plan_failure_recovery``) and marked
``readings_from: "caller"``, but no failure alert goes out and the
printer's own print watchdog keeps running. Only readings Kiln
takes off the printer itself, while it watches a print, announce
a failure.
Args:
printer_name: Identifier of the printer to analyze.
telemetry: Current telemetry snapshot with keys like
``hotend_temp``, ``bed_temp``, ``connected``,
``filament_detected``, etc.
telemetry_history: Optional list of recent telemetry snapshots
for trend analysis (newest last).
job_info: Optional current job metadata with keys like
``file_name``, ``layer``, ``total_layers``, ``z_mm``.
Returns a failure report dict if a failure is detected, or a
success dict with ``failure_detected: False`` if no failure found.
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>",
"telemetry": "<telemetry>"
},
"name": "detect_print_failure"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_info | No | Optional current job metadata with keys like ``file_name``, ``layer``, ``total_layers``, ``z_mm``. | |
| telemetry | Yes | Current telemetry snapshot with keys like ``hotend_temp``, ``bed_temp``, ``connected``, ``filament_detected``, etc. | |
| printer_name | Yes | Identifier of the printer to analyze. | |
| telemetry_history | No | Optional list of recent telemetry snapshots for trend analysis (newest last). |