upgrade_kiln
Updates the Kiln package to the newest version for the user, so they never have to run a pip command. Offers the update, waits for confirmation, and defers while a print is active.
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 call this 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).
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 — only when the user
explicitly insists.
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 |
|---|---|---|---|
| force | No | Override the mid-print safety defer — 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. |