k8s_logs
Retrieve Kubernetes pod logs to monitor application behavior and troubleshoot issues. Specify container, namespace, and time range for multi-container pods.
Instructions
Get pod logs. Specify container for multi-container pods.
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": "k8s_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | Yes | Pod name | |
| namespace | No | Namespace | |
| container | No | Container name (for multi-container pods) | |
| tail | No | Lines from end | |
| since | No | Show logs since (e.g., 1h, 30m) |