get_pod_logs
Retrieve the last N log lines from a pod, with support for reading logs from a previous crashed container instance.
Instructions
Fetch the last N log lines of a pod. Use previous=True to read logs from the previous (crashed) container instance.
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": {
"cluster_id": "<cluster_id>",
"namespace": "<namespace>",
"pod_name": "<pod_name>"
},
"name": "get_pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod_name | Yes | ||
| previous | No | ||
| container | No | ||
| namespace | Yes | ||
| cluster_id | Yes | ||
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |