get_pod_logs
Retrieve real-time logs from Kubernetes pods by specifying namespace, pod name, and optional filters like container name or tail lines.
Instructions
Retrieves logs for a specific pod.
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": {
"namespace": "<namespace>",
"podName": "<podName>"
},
"name": "get_pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cluster | No | Target cluster name (default: 'default') | |
| podName | Yes | The name of the pod | |
| namespace | Yes | The Kubernetes namespace | |
| tailLines | No | Number of lines to tail from the end of the logs | |
| containerName | No | Optional: specific container name for multi-container pods |