k8s_get_pod_logs
Get logs from a Kubernetes pod, with optional duration filter and logs from a previously terminated container. For multi-container pods, defaults to first container.
Instructions
Get logs from a Kubernetes pod. For multi-container pods, logs from the first container are returned by default. Use sinceDuration to filter (e.g., '5m', '1h', '2d'). Set previousContainer=True to get logs from the previously terminated container.
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": {
"context": "<context>",
"namespace": "<namespace>",
"pod": "<pod>"
},
"name": "k8s_get_pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | Yes | ||
| context | Yes | ||
| namespace | Yes | ||
| sinceDuration | No | ||
| previousContainer | No |