wrap_gcode_as_resume_3mf
Package resume G-code as a 3MF file so a Bambu printer can pick up and continue an interrupted print.
Instructions
Package resume G-code as a 3MF a Bambu printer can pick the print back up from (Pro).
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": {
"gcode_path": "<gcode_path>"
},
"name": "wrap_gcode_as_resume_3mf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bed_temp | No | Bed setpoint for the embedded metadata. Leave unset to use the one the gcode body's preamble heats to. | |
| gcode_path | Yes | Path to the resume ``.gcode`` file (typically the ``resume_gcode_path`` returned by ``generate_recovery_gcode`` or ``deboss_during_print``). | |
| hotend_temp | No | Hotend setpoint for the embedded metadata. Leave unset to use the one the gcode body's preamble heats to. | |
| output_path | No | Where to write the ``.3mf``. Empty = replace the ``.gcode`` extension with ``.3mf`` next to the input. Default: "". | |
| printer_name | No | Optional. The file is checked against the bed of the printer the print started on, which Kiln reads from its own record of the print. Only when Kiln holds no such record does this name (a printer of yours, or a model such as ``bambu_a1``) say whose bed to check. The answer's ``bed_check`` says which printer was used, or that the file could not be checked. Default: "". | |
| filament_type | No | The print's material, for metadata. Leave it out and Kiln reads the print's own material; when nothing says which, the call is refused (``PRINT_MATERIAL_UNKNOWN``). | |
| source_3mf_path | No | Optional source ``.3mf`` to extract thumbnails + 3D model geometry from (preserves the printer-display preview from the original job). Empty = generate a minimal placeholder. Default: "". | |
| prime_extruder_on_resume | No | Default ``True``: refuse to emit a 3MF whose embedded gcode lacks the unconditional extruder prime, which guards against a resume that moves through every layer without depositing filament after a cancel/start cycle. Set ``False`` only when the extruder is primed out-of-band. Default: true. |