get_pod_logs
Fetch logs from a Kubernetes pod container with optional tail line limit to troubleshoot application issues and inspect runtime behavior.
Instructions
Fetch logs from a pod container with optional tail line limit
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": {
"name": "<name>"
},
"name": "get_pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Pod name | |
| container | No | Container name (optional for multi-container pods) | |
| namespace | No | Namespace (default: "default") | |
| tail_lines | No | Lines from end to return (default: 100) |