kubectl_get_logs
Retrieve logs from a Kubernetes pod to troubleshoot crashes, errors, and container output. Specify the pod, namespace, container, and tail lines for targeted log inspection.
Instructions
Get logs from a Kubernetes pod
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_name": "<pod_name>"
},
"name": "kubectl_get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Number of lines to show from the end | |
| pod_name | Yes | Name of the pod | |
| container | No | Container name (optional, for multi-container pods) | |
| namespace | No | Namespace (optional) |