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.
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. |