docker_container_exec
Run commands inside a running Docker container with argv-based execution, optional environment variables, working directory, and timeout controls. Returns bounded output for inspection and automation.
Instructions
Execute a command in a running container (argv, no shell, bounded output)
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_id": "<container_id>",
"command": "<command>"
},
"name": "docker_container_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Extra environment variables | |
| command | Yes | Command and arguments to run | |
| workdir | No | Working directory inside the container | |
| container_id | Yes | Container ID or name | |
| timeout_seconds | No | Maximum run time in seconds (1-300) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||