retry_print_with_fix
Diagnose the last 3D print failure, merge recommended slicer fixes, re-validate the mesh, then re-slice and restart the print automatically.
Instructions
Diagnose the last print failure and re-slice + print with fixes.
When a print fails, call this tool instead of manually chaining
``diagnose_print_failure_live`` → ``slice_and_print``. It:
1. Reads live printer state and analyses the model geometry to
diagnose the failure (unless ``skip_diagnosis`` is True).
2. Auto-detects the loaded material from the AMS when
``material`` is omitted and the printer supports it.
3. Merges diagnosis-recommended slicer overrides with any
``custom_overrides`` you supply (your overrides win on
conflict).
4. Re-validates the mesh's printability before re-slicing. A
retry path that re-sends a broken mesh is the highest-
value place to validate — the previous attempt already
failed, and slicer overrides can't fix mesh-level issues.
Bypass with ``skip_validation=True`` if the caller already
validated.
5. Re-slices the (possibly auto-repaired) mesh with the merged
overrides, uploads the result, and starts the print.
Args:
keep_record: ``False`` only when the person asks for this print not to
be kept ("print this privately", "don't keep a record of this");
never suggest it. Kiln then keeps nothing of the print once it
ends, and the answer carries one line saying so. ``True`` keeps it,
for a start a team's rule held (``TEAM_KEEPS_PRINTS``) after the
person agreed. Omit otherwise: the print is kept the way the
account says.
mixed_nozzle_experiment: The person has said yes, for this print, to a slice refused
with ``MULTI_NOZZLE_MIXED_SIZES`` (nozzles of different sizes at once, an
experiment). Only on their yes, each time; ``slice_model`` says what follows.
soft_nozzle_confirmed: The owner has said to print anyway a
slice refused with ``ABRASIVE_ON_SOFT_NOZZLE`` (an
abrasive filament through a nozzle on record that is not
wear-resistant). Only on their word, never on your own
judgement.
filament_map: Only for a printer with more than one nozzle:
the nozzle (1 for the first) each filament prints from,
one number per filament in filament order. Leave unset
to let the slicer choose; a map that does not fit is
refused before slicing, as ``slice_model`` refuses it.
model_path: Path to the model that failed (STL, OBJ, 3MF,
STEP, ...). One the diagnosis cannot read is said in
``printability_note``.
printer_name: Target printer name. Omit for the default
printer.
material: Filament material (e.g. ``"PLA"``, ``"ABS"``); the
reslice is set for it (temperatures, melt rate,
cooling). Auto-detected from AMS when omitted.
printer_id: Printer model ID for intelligence lookup
(e.g. ``"bambu_a1"``).
custom_overrides: JSON object of additional slicer overrides
to merge on top of the diagnosis recommendations
(e.g. ``'{"brim_width": "8"}'``). Your values win on
conflict.
skip_diagnosis: If True, skip the failure diagnosis step and
re-slice using only ``custom_overrides``.
skip_validation: If True, bypass the pre-print mesh
validation gate. Defaults to False — designs are
pre-tested for printability before the retry reaches
the printer.
placement: Where the part goes when the plate still holds
the last print: ``[x, y]`` in mm, a named region
(``"front-left"``, ``"centre"``, …), or ``"keep"``.
Omitted, an occupied plate refuses before slicing and
lists the spots that would work.
The clearance verdict is always given; placing and
starting a second print on an occupied plate is included
where the plan carries it.
preview_token: Token from ``issue_preview_token`` proving this
model was shown to the person before printing. Required
beside their go-ahead: a print is shown to its owner
before it starts. Placed beside a part on the plate,
the model is the same part, so the token and the yes
for ``model_path`` cover it; a mesh the check repairs
or rescales is another part, and the refusal names the
file to show and ask about once.
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": {
"model_path": "<model_path>"
},
"name": "retry_print_with_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | Filament material (e.g. ``"PLA"``, ``"ABS"``); the reslice is set for it (temperatures, melt rate, cooling). Auto-detected from AMS when omitted. | |
| placement | No | Where the part goes when the plate still holds the last print: ``[x, y]`` in mm, a named region (``"front-left"``, ``"centre"``, …), or ``"keep"``. Omitted, an occupied plate refuses before slicing and lists the spots that would work. The clearance verdict is always given; placing and starting a second print on an occupied plate is included where the plan carries it. | |
| model_path | Yes | Path to the model that failed (STL, OBJ, 3MF, STEP, ...). One the diagnosis cannot read is said in ``printability_note``. | |
| printer_id | No | Printer model ID for intelligence lookup (e.g. ``"bambu_a1"``). | |
| keep_record | No | ``False`` only when the person asks for this print not to be kept ("print this privately", "don't keep a record of this"); never suggest it. Kiln then keeps nothing of the print once it ends, and the answer carries one line saying so. ``True`` keeps it, for a start a team's rule held (``TEAM_KEEPS_PRINTS``) after the person agreed. Omit otherwise: the print is kept the way the account says. | |
| filament_map | No | Only for a printer with more than one nozzle: the nozzle (1 for the first) each filament prints from, one number per filament in filament order. Leave unset to let the slicer choose; a map that does not fit is refused before slicing, as ``slice_model`` refuses it. | |
| printer_name | No | Target printer name. Omit for the default printer. | |
| preview_token | No | Token from ``issue_preview_token`` proving this model was shown to the person before printing. Required beside their go-ahead: a print is shown to its owner before it starts. Placed beside a part on the plate, the model is the same part, so the token and the yes for ``model_path`` cover it; a mesh the check repairs or rescales is another part, and the refusal names the file to show and ask about once. | |
| skip_diagnosis | No | If True, skip the failure diagnosis step and re-slice using only ``custom_overrides``. Default: false. | |
| skip_validation | No | If True, bypass the pre-print mesh validation gate. Defaults to False — designs are pre-tested for printability before the retry reaches the printer. Default: false. | |
| custom_overrides | No | JSON object of additional slicer overrides to merge on top of the diagnosis recommendations (e.g. ``'{"brim_width": "8"}'``). Your values win on conflict. | |
| soft_nozzle_confirmed | No | The owner has said to print anyway a slice refused with ``ABRASIVE_ON_SOFT_NOZZLE`` (an abrasive filament through a nozzle on record that is not wear-resistant). Only on their word, never on your own judgement. Default: false. | |
| mixed_nozzle_experiment | No | The person has said yes, for this print, to a slice refused with ``MULTI_NOZZLE_MIXED_SIZES`` (nozzles of different sizes at once, an experiment). Only on their yes, each time; ``slice_model`` says what follows. Default: false. |