get_pod_logs
Retrieve stdout and stderr log lines from a Kubernetes pod for diagnostic analysis. Use to investigate application crashes, HTTP 500 errors, or startup exceptions.
Instructions
Extract stdout and stderr log streams from a pod container for diagnostics.
Usage Guidelines
Use when investigating application crashes, HTTP 500 errors, or startup exceptions.
Keep
tail_linessmall (e.g. 50–200) to avoid overloading LLM token context.
Behavioral Transparency
Read-only query.
Returns raw text log lines or a descriptive error if the pod or container does not exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod_name | Yes | Exact identifier name of the pod whose logs should be extracted (e.g. 'nginx-7854ff8877-abcde'). | |
| container | No | Specific container name within a multi-container pod. If omitted, Kubernetes selects the primary container. | |
| namespace | No | Kubernetes namespace where the target pod resides. Defaults to 'default'. | default |
| tail_lines | No | Number of most recent log lines to fetch. Constrained between 1 and 2000. Defaults to 100. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |