acquire_printer_lock
Reserve a printer for the current Kiln session to prevent other sessions from commanding it; renew before expiry or let the reservation end automatically.
Instructions
Reserve a printer for this Kiln session, so no other session commands it.
Every AI app, terminal and bridge on this computer runs its own
Kiln session. While this session has the printer reserved, the
others can still check its status and camera and send an
emergency stop, but their other commands to it are refused, naming
who reserved it. The reservation ends when it is released, when
``hold_minutes`` run out, or when this session exits; call again to
renew it. It never lets anyone use a printer their plan would not
(one printer at a time below Kiln Business).
Args:
printer_name: Printer to reserve.
holder: A name for who reserved it (for example the app),
shown to the sessions that are refused.
hold_minutes: How long it lasts (1 to 1440, default 30).
timeout_seconds: How long to wait if another session has it
(default 0: answer at once with who has it; at most 120).
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": {
"printer_name": "<printer_name>"
},
"name": "acquire_printer_lock"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holder | No | A name for who reserved it (for example the app), shown to the sessions that are refused. Default: "". | |
| hold_minutes | No | How long it lasts (1 to 1440, default 30). Default: 30.0. | |
| printer_name | Yes | Printer to reserve. | |
| timeout_seconds | No | How long to wait if another session has it (default 0: answer at once with who has it; at most 120). Default: 0.0. |