Start / Stop / Restart / Pause / Unpause a Docker Container
docker_container_actionChange a Docker container's run state—start, stop, pause, unpause, or restart—with explicit confirmation.
Instructions
Changes a container's run state (start | stop | pause | unpause | restart). restart uses the API's native restart mutation (API 4.37+). Requires confirm: true. Pass the container id from docker_container_list; names often work but the API's post-action read-back is unreliable with names. stop/pause/restart disrupt a running container; start/unpause are restorative but still gated for consistency. To delete a container use docker_container_remove; to change what starts at boot use docker_autostart_set.
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": {
"id": "<id>",
"action": "<action>"
},
"name": "docker_container_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Container id from docker_container_list (preferred over a name). | |
| action | Yes | Run-state change to apply; `unpause` resumes a paused container. | |
| confirm | No | Set `true` only after the user approves this specific change; otherwise the tool refuses or prompts them. | |
| response_format | No | `detailed` returns full JSON instead of readable text. | concise |