printer_bench
Teach Kiln how your 3D printer moves and what it can print through a guided, one-question-at-a-time session that fills unknown motion and print-limit data.
Instructions
Help Kiln get to know your printer in a few minutes: a guided session, one ask at a time.
WHEN TO REACH FOR IT: Offer it once per printer, and never before the printer's first print: when a reply carries an offer of it, say that offer as written, and offer it when the person asks why Kiln cannot do something on their printer or wants to teach Kiln their printer. printer_bench() with no answer starts or resumes it, or says there is nothing to teach; printer_bench(lesson="limits") starts the second lesson on its own, and printer_bench(lesson="walk", move=...) starts a walk a reply offered. Relay each ask word for word, show its pictures, and take 'later' as an answer.
Kiln judges where a second part can go on an occupied plate from a record of how each printer moves its head on its own. Where that record has a blank -- a pause, cancel or end nobody has described, a head nobody has measured -- Kiln assumes the worst. This session fills the blanks for THIS printer: it prints a coin-sized square, pauses, resumes, cancels and ends it, and watches where the head goes. A Klipper or Marlin printer says where its head is, so nothing about the moves is asked; a closed-firmware printer is asked which numbered zone the head stopped in (a picture is included) and about how high it lifted. Numbers only ever leave the machine, and only while telemetry is on. Runout is never tested.
Call it with no answer to start or resume. Every reply carries
ask (one sentence -- relay it word for word), images (what each
picture is; the pictures themselves follow the reply as images, in the
same order -- show them), options when the answer is a choice, and waiting with
check_again_in_seconds when Kiln is watching the print and there is
nothing to ask yet. Hand the person's answer back as answer. The
test print is a real print: when the reply says so, show the file with
visualize_model, get a token with issue_preview_token and start
it with run_quick_print -- the normal approval dialog shows, once.
restart=True throws the session away and begins again.
A second lesson teaches Kiln how steep, how far and how thin this
printer prints in one plastic, from a small test print the person reads
a few numbers off. It is offered when the first lesson ends or has
nothing to teach; lesson="limits" starts it on its own. Kiln makes
the test print; slice it as the reply's how_to_slice says and hand
the sliced files back as gcode_paths (Kiln reads them before it asks
anything), then print each plate as how_to_start says. It needs a
free Kiln account, where the test print and the readings are kept.
A third lesson learns a home or a park with the person, one small step
at a time, on a printer Kiln cannot yet home or park itself. A refusal
from home_axes or park_head offers it only when Kiln has one on
offer for that printer; lesson="walk" with move starts it. Kiln
sends one step, says what the person should see, and sends the next only
after the person says the printer did exactly that. The printer stays
cold, and its own stop, pause and power switch work at every moment. It
needs a free Kiln account, and is the same on every plan.
Args:
printer_name: Which printer. Omit for the default one.
answer: The person's answer to the previous ask, verbatim.
restart: Begin again from the first ask.
lesson: "motion" (how the printer moves its head),
"limits" (what it can really print) or "walk" (a home
or a park learned with the person, one step at a time). Omit
to start or resume whichever is due.
gcode_paths: The second lesson's sliced files, one per plate, in
plate order, when its reply asks for them.
move: "home" or "park": the move a walk learns.
Returns the next ask, or done with what Kiln learned and the payoff
line.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "printer_bench"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| move | No | ``"home"`` or ``"park"``: the move a walk learns. | |
| answer | No | The person's answer to the previous ask, verbatim. | |
| lesson | No | ``"motion"`` (how the printer moves its head), ``"limits"`` (what it can really print) or ``"walk"`` (a home or a park learned with the person, one step at a time). Omit to start or resume whichever is due. | |
| restart | No | Begin again from the first ask. Default: false. | |
| gcode_paths | No | The second lesson's sliced files, one per plate, in plate order, when its reply asks for them. | |
| printer_name | No | Which printer. Omit for the default one. |