k8s_exec_pod
Execute commands in Kubernetes pod containers to run diagnostics, check logs, or perform maintenance tasks within your cluster.
Instructions
Execute a command in a pod 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": {
"name": "<name>",
"command": "<command>"
},
"name": "k8s_exec_pod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Pod name | |
| namespace | No | Namespace | |
| container | No | Container name (if pod has multiple containers) | |
| command | Yes | Command to execute (e.g., 'ls -la' or 'cat /etc/hosts') |