Read pod logs
k8s_read_pod_logsRead Kubernetes pod logs to diagnose container issues, optionally targeting a specific container, previous instance, namespace, or recent time window.
Instructions
Read a pod's logs, optionally one container's or the previous instance's.
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": "k8s_read_pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Named context of the multi-context pool to run against (see cm_multi_context list_contexts); the default context if omitted. | |
| pod_name | Yes | ||
| previous | No | ||
| container | No | ||
| namespace | No | ||
| tail_lines | No | ||
| since_seconds | No |