k8s_get_logs
Retrieve logs from a Kubernetes pod by specifying pod name, namespace, container, and number of lines.
Instructions
Get pod logs
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_get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | Yes | Pod name | |
| namespace | No | Namespace | default |
| container | No | Container name | |
| tail | No | Lines to show |