Get Pod Logs
get_pod_logsFetch logs from Kubernetes pods by specifying name, namespace, container, and line count. Supports multi-container pods and previous instance logs.
Instructions
Fetch logs for a specific pod/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": {
"name": "<name>"
},
"name": "get_pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Pod name | |
| previous | No | Fetch logs from the previous container instance | |
| container | No | Container name (optional, required for multi-container pods) | |
| namespace | No | Namespace (default: 'default') | default |
| tail_lines | No | Number of lines from the end (default: 100) |