get_pod_logs
Fetch recent logs from a pod to investigate failures, optionally from a specific container or from the last crashed instance after CrashLoopBackOff.
Instructions
Fetch recent logs for a pod (optionally a specific container). Set previous=True to get the logs of the last crashed instance of the container, which is usually what you want after a CrashLoopBackOff.
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": "<pod>"
},
"name": "get_pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | Yes | ||
| previous | No | ||
| container | No | ||
| namespace | No | default | |
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |