save_print_checkpoint
Save print checkpoints during an active 3D print to capture known-good Z height, layer, and temperatures for accurate failure detection and resume planning.
Instructions
Save a checkpoint during an active print for accurate resume.
The checkpoint is keyed by ``(printer_name, job_id)`` and read
automatically by :func:`detect_print_failure` so that the resulting
:class:`FailureReport` carries known-good Z / layer / temps. The
resume planner uses this for accurate ``resume_z_mm`` instead of
estimating from ``z_per_layer * resume_layer`` — meaningfully more
accurate when the print uses variable-layer-height slicing.
Args:
printer_name: Name of the printer running the job.
job_id: Unique job identifier.
z_height: Current Z height in mm.
layer_number: Current layer number (0-based).
hotend_temp: Hotend temperature at checkpoint time (Celsius).
bed_temp: Bed temperature at checkpoint time (Celsius).
filament_used_mm: Filament consumed so far in mm.
fan_speed_pct: Part-cooling fan speed (0-100); omitted, 0.
flow_rate_pct: Flow-rate multiplier in percent; omitted, 100.
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": "save_print_checkpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Unique job identifier. | |
| bed_temp | No | Bed temperature at checkpoint time (Celsius). | |
| z_height | No | Current Z height in mm. | |
| hotend_temp | No | Hotend temperature at checkpoint time (Celsius). | |
| layer_number | No | Current layer number (0-based). | |
| printer_name | Yes | Name of the printer running the job. | |
| fan_speed_pct | No | Part-cooling fan speed (0-100); omitted, 0. | |
| flow_rate_pct | No | Flow-rate multiplier in percent; omitted, 100. | |
| filament_used_mm | No | Filament consumed so far in mm. |