slice_and_estimate
Slice a 3D model to estimate print time, filament use, cost, and printability before committing to a job, without uploading or starting a print.
Instructions
Primary estimation tool — slice a 3D model and return time, filament, cost, and printability analysis.
For G-code files (already sliced), use ``estimate_cost`` instead.
For quick volume-based estimates without slicing, use ``estimate_material_cost``.
Slices the model using PrusaSlicer or OrcaSlicer, parses the
output G-code for time and filament metadata, runs printability
analysis on the file as it was sliced (a STEP file as Kiln's
mesh of it), and returns adhesion recommendations — all without
uploading or starting a print. When the analysis could not be
made, ``printability`` is null and ``printability_note`` says
why.
Use this tool to answer "how long will this take?" or "how much
filament will I use?" before committing to a print job.
Args:
speed_by_height: The person's own speeds for height ranges of the part, only when they ask
for them: a list like ``[{"from_mm": 0, "to_mm": 6, "percent": 50}, {"from_mm": 6,
"speed_mm_s": 120}]`` (millimetres up from the plate; ``to_mm`` left out means to the
top; one speed per range), or ``"kiln"`` to have Kiln choose them from the part's shape
(Kiln Pro). ``slice_model`` says what is read back and what is refused.
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.
plate_number: Which plate to estimate of a slicer project that
holds several plates (1 for the first). Leave unset for
any other file. A several-plate project with none named
is refused with ``code: "PLATE_NOT_CHOSEN"`` and a list of
its plates: ask the user which plate, then pass it.
input_path: Path to the input file (STL, OBJ, 3MF, STEP, AMF).
printer_id: Optional printer model ID for bundled profile
auto-selection (e.g. ``"bambu_a1"``, ``"prusa_mini"``).
profile: Path to a slicer profile/config file (.ini or .json).
Takes precedence over ``printer_id`` auto-selection.
material: Filament material (e.g. ``"PLA"``, ``"PETG"``,
``"TPU"``). The slice is set for it -- temperatures,
melt rate and cooling -- so the time is the time THIS
material takes (a TPU part is far slower than the same
part in PLA), and its density gives the weight.
Default is ``"PLA"``.
printer_name: Registered printer this estimate is FOR. Omit
for the default printer. An estimate is only as true as
the profile behind it, so naming a second machine costs
the job on that machine rather than on the default.
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"``. An estimate never
refuses because of the plate: when the plate still holds
the last print and no safe spot is named, the estimate is
for the part on an empty plate and ``plate_note`` says
so. Where a named spot is safe, the estimate is of the
part there, with the clearance verdict in ``placement``.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": "slice_and_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | Path to a slicer profile/config file (.ini or .json). Takes precedence over ``printer_id`` auto-selection. | |
| material | No | Filament material (e.g. ``"PLA"``, ``"PETG"``, ``"TPU"``). The slice is set for it -- temperatures, melt rate and cooling -- so the time is the time THIS material takes (a TPU part is far slower than the same part in PLA), and its density gives the weight. Default is ``"PLA"``. Default: "PLA". | |
| 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"``. An estimate never refuses because of the plate: when the plate still holds the last print and no safe spot is named, the estimate is for the part on an empty plate and ``plate_note`` says so. Where a named spot is safe, the estimate is of the part there, with the clearance verdict in ``placement``. | |
| input_path | Yes | Path to the input file (STL, OBJ, 3MF, STEP, AMF). | |
| printer_id | No | Optional printer model ID for bundled profile auto-selection (e.g. ``"bambu_a1"``, ``"prusa_mini"``). | |
| 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. | |
| plate_number | No | Which plate to estimate of a slicer project that holds several plates (1 for the first). Leave unset for any other file. A several-plate project with none named is refused with ``code: "PLATE_NOT_CHOSEN"`` and a list of its plates: ask the user which plate, then pass it. | |
| printer_name | No | Registered printer this estimate is FOR. Omit for the default printer. An estimate is only as true as the profile behind it, so naming a second machine costs the job on that machine rather than on the default. | |
| speed_by_height | No | The person's own speeds for height ranges of the part, only when they ask for them: a list like ``[{"from_mm": 0, "to_mm": 6, "percent": 50}, {"from_mm": 6, "speed_mm_s": 120}]`` (millimetres up from the plate; ``to_mm`` left out means to the top; one speed per range), or ``"kiln"`` to have Kiln choose them from the part's shape (Kiln Pro). ``slice_model`` says what is read back and what is refused. | |
| 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. |