Restart container
restart_containerRestarts a Docker container via a two-phase confirmation: first preview to obtain a single-use token, then confirm with the token to execute the restart.
Instructions
MUTATING: causes downtime. Two-phase confirm flow — call ONCE without confirmToken to preview and receive a single-use token, then call AGAIN with that confirmToken within 120s to actually restart. The token is bound to this exact container.
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": {
"container": "<container>"
},
"name": "restart_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container | Yes | Container id-prefix or exact name. | |
| confirmToken | No | Omit to preview; supply the token from the preview to execute. |