restart_daemon
Restart the daemon to apply restart-required configuration, allowing in-flight builds and runs to drain first; confirm completion when uptime resets.
Instructions
Restart the daemon to apply restart-required config (admin-scoped, audited).
Returns 202 with drain counts. **Over the HTTP MCP transport this kills
the connection serving this call**: a dropped response after issuing it
means the restart most likely started. Confirm with ``capabilities``
(``uptime_s`` resets); retrying with the same idempotency key answers
``409 daemon.restart_in_progress`` or a fresh 202, never a second
restart mid-drain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| drain_timeout_s | No | Seconds to let in-flight builds, runs and releases drain before the daemon self-execs, clamped server-side to [0, 300]; omit for 60. At 0 the SIGTERM can beat the 202 response. | |
| idempotency_key | No | Caller-chosen key; the daemon REQUIRES one and the MCP tool mints a fresh uuid4 when you omit it. A retry with the same key is safe: it answers ``409 daemon.restart_in_progress`` (or replays the first 202), never a second restart mid-drain. |