Pod logs
pod_logsRead a pod's container logs to troubleshoot issues. Optionally retrieve logs from a specific container or previous crashed instance.
Instructions
Read a pod's container logs (most recent lines). Optionally a specific container or the previous instance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Pod name (from list_resources kind=pod) | |
| previous | No | Read the previous (crashed) container instance's logs | |
| container | No | Container name (defaults to the first / only container) | |
| namespace | Yes | Namespace / project the pod is in | |
| tail_lines | No | How many trailing lines to return (default 200) |