get_pod_logs
Retrieve a bounded tail of container logs from a Kubernetes pod to diagnose issues, with options for previous container and tail line count, without changing cluster state.
Instructions
Read a bounded tail of container logs. Logs may contain sensitive application data.
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": {
"cluster": "<cluster>",
"namespace": "<namespace>",
"name": "<name>"
},
"name": "get_pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| cluster | Yes | ||
| previous | No | ||
| container | No | ||
| namespace | Yes | ||
| tail_lines | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |