reslice_with_overrides
Reslice a 3D model with custom slicer overrides to fix failed prints from adhesion, wobble or quality issues. Adjust brim, speed, infill and support settings, then generate new G-code.
Instructions
Reslice a 3D model with custom slicer parameter overrides.
Accepts a base printer profile and a JSON dict of overrides to customize
the slice. Common override keys (PrusaSlicer INI format):
Adhesion: brim_width (mm), skirts (count), skirt_distance (mm)
Temperature: temperature, first_layer_temperature, bed_temperature
Speed: perimeter_speed, infill_speed, external_perimeter_speed, first_layer_speed, travel_speed (mm/s)
Structure: fill_density (e.g. "25%"), fill_pattern (gyroid/grid/honeycomb), layer_height
Support: support_material (0/1), support_material_buildplate_only (0/1)
Retraction: retract_length, retract_speed
Example overrides JSON: {"brim_width": "8", "perimeter_speed": "30", "fill_density": "25%"}
Use this tool when a print failed due to adhesion, wobble, or quality issues
and you need to reslice with adjusted settings. Pair with rotate_model to
also change part orientation before reslicing. A brim too wide for the
room beside the part is refused (``BRIM_PAST_BED``) with the width that
fits; a skirt past the edge of the bed is dropped and said in ``bed_fit``.
Requires PrusaSlicer or OrcaSlicer installed locally.
Use kiln find-slicer or the find_slicer MCP tool to verify.
Args:
input_path: Path to the input file (STL, 3MF, STEP, OBJ, AMF).
printer_id: Printer model ID for bundled profile selection
(e.g. ``"prusa_mini"``, ``"bambu_a1"``).
overrides: Slicer keys to override, as a JSON object or its
string form (e.g. ``{"brim_width": "8", "fill_density": "25%"}``).
output_dir: Directory for the output G-code. Defaults to the
system temp directory.
slicer_path: Explicit path to the slicer binary. Auto-detected
if omitted.
printer_name: Registered printer this reslice is FOR. Omit
for the default printer. Naming a second machine
resolves its profile, its bed and its temperature
ceilings instead of the default printer's.
material: Filament material for this slice (``"PLA"``,
``"PETG"``, …). It sets the temperatures, melt rate and
cooling (``build_material_overrides`` shows them) and its
density weighs the print; any of them you also pass in
``overrides`` stays yours. Omitted, the loaded spool
answers, then PLA — the response's ``filament`` block
says which.
placement: Where the part goes when the plate still holds the
last print: ``[x, y]`` in mm (the part's footprint
origin), a named region (``"front-left"``, ``"centre"``,
``"back-right"``, …), or ``"keep"``. Omitted, an
occupied plate refuses and lists the spots that would
work; a clear plate reslices as before. The response's
``placement`` block is the clearance verdict, checked
again on the sliced file. The clearance verdict is
always given; placing and starting a second print on an
occupied plate is included where the plan carries it.
auto_center: Centre the model on the plate before slicing
(default ``True``). ``False`` keeps the model where its
file places it.INLINE 3D STAGE: on success this tool opens Kiln's interactive 3D stage — an inline viewer panel the user can orbit, zoom, and turn over — in hosts that render MCP Apps panels (Kiln's hosted connection attaches a browser stage link for hosts that don't). Oversized meshes are decimated automatically for the stage; the PNG preview is the floor, not the whole experience.
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": {
"input_path": "<input_path>"
},
"name": "reslice_with_overrides"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| material | No | Filament material for this slice (``"PLA"``, ``"PETG"``, …). It sets the temperatures, melt rate and cooling (``build_material_overrides`` shows them) and its density weighs the print; any of them you also pass in ``overrides`` stays yours. Omitted, the loaded spool answers, then PLA — the response's ``filament`` block says which. | |
| overrides | No | Slicer keys to override, as a JSON object or its string form (e.g. ``{"brim_width": "8", "fill_density": "25%"}``). | |
| placement | No | Where the part goes when the plate still holds the last print: ``[x, y]`` in mm (the part's footprint origin), a named region (``"front-left"``, ``"centre"``, ``"back-right"``, …), or ``"keep"``. Omitted, an occupied plate refuses and lists the spots that would work; a clear plate reslices as before. The response's ``placement`` block is the clearance verdict, checked again on the sliced file. The clearance verdict is always given; placing and starting a second print on an occupied plate is included where the plan carries it. | |
| input_path | Yes | Path to the input file (STL, 3MF, STEP, OBJ, AMF). | |
| output_dir | No | Directory for the output G-code. Defaults to the system temp directory. | |
| printer_id | No | Printer model ID for bundled profile selection (e.g. ``"prusa_mini"``, ``"bambu_a1"``). | |
| auto_center | No | Centre the model on the plate before slicing (default ``True``). ``False`` keeps the model where its file places it. Default: true. | |
| slicer_path | No | Explicit path to the slicer binary. Auto-detected if omitted. | |
| printer_name | No | Registered printer this reslice is FOR. Omit for the default printer. Naming a second machine resolves its profile, its bed and its temperature ceilings instead of the default printer's. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||