deboss_during_print
Carve a debossed image into the top of an in-flight 3D print by modifying the paused job's G-code, enabling design changes without restarting the print.
Instructions
Carve a debossed image into the top of an in-flight print (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": {
"image_path": "<image_path>",
"gcode_path": "<gcode_path>",
"current_layer": "<current_layer>"
},
"name": "deboss_during_print"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bevel | No | Soften the walls of the cut. Default ``True``. Default: true. | |
| bed_temp | No | Bed temperature, read the same way. | |
| depth_mm | No | Deboss depth in mm. Must be in (0, 5]. Default: 1.2. | |
| threshold | No | How dark a pixel must be to be cut (0.0-1.0, default 0.35). Default: 0.35. | |
| gcode_path | Yes | Original sliced .gcode of the in-flight job. | |
| image_path | Yes | PNG/JPG to deboss into the top. | |
| output_dir | No | Where to write the files. Left out, a new session folder is used. | |
| top_layers | No | Not used. The layers that can be carved are read from the print's own file. | |
| hotend_temp | No | Nozzle temperature. Leave unset to use the one the print's own file heats to; a value that differs from it is kept and said in ``warnings``. | |
| image_scale | No | 0.7 means the image fills 70% of the top face's shorter side. Default: 0.7. | |
| resume_z_mm | No | The height you believe the print is at. The file's own height for that layer is used; a different number here is said in ``warnings``. | |
| aspect_policy | No | How to fit an image whose shape differs from the top face: ``"auto_crop"`` (default), ``"auto_scale"`` or ``"strict"`` (refuse a mismatch). Default: "auto_crop". | |
| current_layer | Yes | 1-indexed layer the printer is paused at. The print continues from this layer; the carve begins above it. | |
| filament_type | No | The print's material. Leave it out and Kiln reads the print's own; when nothing says which, the call is refused (``PRINT_MATERIAL_UNKNOWN``). | |
| package_as_3mf | No | For a Bambu printer the edited print is packaged as a 3MF and returned as ``resume_3mf_path``; pass ``False`` to leave that field empty and use ``resume_gcode_path``. Other printers get G-code either way. Default: true. | |
| printer_z_known | No | REQUIRED ``True``: your confirmation that the printer has not been power-cycled or re-homed since it paused. Otherwise refused with ``PRINTER_Z_UNKNOWN``. Default: false. | |
| source_3mf_path | No | The original job's .3mf, for its thumbnail on the printer's screen. Default: "". | |
| accept_subtle_depth | No | Yes to a carve shallower than reads clearly, when an answer of ``needs_acceptance`` names it. Default: false. | |
| accept_bridge_cascade_risk | No | Yes to a carve that cuts into the layer where the print bridges across its infill, when an answer of ``needs_acceptance`` names it. Default: false. |