Restart app
restart_appThe safe restart verb: roll a project's pods for the canonical (production) commit, or a specific one by commit — a pod-template annotation bump, exactly like kubectl rollout restart. NO helm upgrade, NO env/Secret write, no image change. Contrast with redeploy, which re-runs the full release install; restart_app fits whenever the goal is just "make the running pods pick up nothing new, just come back fresh" (e.g. clear an in-memory leak or a wedged process) without any of redeploy's blast radius. Refuses with a clear error when the commit has no running deployment — start it first with start_commit. Requires a read-write token.
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": {
"project_id": "<project_id>"
},
"name": "restart_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commit | No | full or abbreviated commit hash to restart (from list_deployments); defaults to the canonical (production) commit | |
| project_id | Yes | the project id (from list_projects) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| status | No | present, and always "pending_approval", only when this call was parked instead of run immediately because the project's (or kad-back's own) plan-mode setting requires a human to approve it first | |
| message | Yes | ||
| plan_id | No | poll get_plan_status with this id for the eventual outcome | |
| approve_at | No | the kad.dev dashboard URL a human approves or rejects this plan from | |
| expires_in_s | No | the plan can no longer be approved after this many seconds |