container_action
Perform container actions: start, stop, restart, pause, unpause, or remove a Docker container with optional force and timeout parameters.
Instructions
Start, stop, restart, pause, unpause, or remove a 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>",
"action": "<action>"
},
"name": "container_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force removal (only for remove) | |
| action | Yes | Action to perform | |
| timeout | No | Grace period in seconds (only for stop) | |
| container | Yes | Container name or ID |