exec_in_pod
Run shell commands inside a Kubernetes pod or container to retrieve output, enabling direct inspection and troubleshooting of deployment health.
Instructions
Run a shell command inside a pod (or one of its containers, including an ephemeral debug container previously created with spawn_ephemeral_debug_container) and return its combined output. This is how you actually use a spawned debug container once it's running.
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": {
"pod": "<pod>",
"command": "<command>"
},
"name": "exec_in_pod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | Yes | ||
| command | Yes | ||
| container | No | ||
| namespace | No | default | |
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |