k8s_pod_exec
Execute commands inside a running Kubernetes pod container. Supports container selection for multi-container pods and quoted arguments.
Instructions
Execute a command inside a running container. Supports quoted arguments (e.g., 'ls -la "/my dir"'). Specify container for multi-container pods. Defaults to the 'default' namespace if not specified.
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": {
"context": "<context>",
"pod_name": "<pod_name>",
"command": "<command>"
},
"name": "k8s_pod_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tty | No | ||
| stdin | No | ||
| command | Yes | ||
| context | Yes | ||
| timeout | No | ||
| pod_name | Yes | ||
| container | No | ||
| namespace | No |