container_exec
Execute a command inside a running Docker container with output capped at 200 lines or 10KB.
Instructions
Run a command in a running container. Output capped at 200 lines / 10KB.
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>",
"command": "<command>"
},
"name": "container_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tty | No | Allocate a TTY | |
| command | Yes | Command and arguments | |
| container | Yes | Container name or ID |