Get pod logs
get_pod_logsRead a pod's container logs to troubleshoot. For crash-looping pods, set previous=true to fetch logs from the dead instance where the real error lies.
Instructions
Read a pod's container logs. For a crash-looping pod set previous=true to read the instance that already died -- that is where the real error is.
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": "get_pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod_name | Yes | ||
| previous | No | ||
| container | No | ||
| namespace | No | ||
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |