upgrade_kiln
Updates Kiln after user confirmation, safely waiting for active prints to finish, or installs the camera add-on when needed. Offers the change first and never runs without consent.
Instructions
Update the Kiln package to the latest version — for the user.
The upgrade path a person never has to think about. When a newer Kiln is available (or a
hosted call returns an upgrade-required signal), OFFER to handle it:
ask "want me to update Kiln for you now?" and call this with
confirm=True once they agree. Don't make the user run a pip command.
AGENT CONTRACT (important):
* NEVER update Kiln while a print is active — wait until it finishes.
Swapping Kiln mid-print is unsafe.
* Confirm with the user first; this changes their installed
software. Pass confirm=True only after they say yes.
* On success the new version is on disk but the running Kiln still
has the old code loaded — relay the restart instruction from the
result so the user applies it at a safe moment (not mid-print).
CAMERA ADD-ON: ``addon="camera"`` adds Kiln's free camera add-on
instead of updating Kiln, when a camera door says it is needed (a
``camera_addon`` block, or a monitor report's ``Camera:`` line).
The same yes comes first (confirm=True only after the person
agrees); it is fine while a print runs, needs no restart, and
``force`` does not apply. Say the reply's ``message``; its
``agent_note`` says what to do next.
Args:
confirm: Set True to actually perform the update. Called without
it, this returns the offer to show the user and changes
nothing.
force: Override the mid-print safety defer of a Kiln update —
only when the user explicitly insists.
addon: Leave out to update Kiln. ``"camera"`` adds the camera
add-on instead; any other value is refused.
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": "upgrade_kiln"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| addon | No | Leave out to update Kiln. ``"camera"`` adds the camera add-on instead; any other value is refused. | |
| force | No | Override the mid-print safety defer of a Kiln update — only when the user explicitly insists. Default: false. | |
| confirm | No | Set True to actually perform the update. Called without it, this returns the offer to show the user and changes nothing. Default: false. |