pod_logs
Retrieve recent log lines from a Kubernetes pod to troubleshoot issues; specify pod name, optional namespace, container, and tail count (default 100).
Instructions
[READ] Return the most recent log lines for a pod (default 100).
Args: name: Pod name. namespace: Namespace; omit for the target's default namespace. tail_lines: Number of trailing log lines to return. container: Container name (required only for multi-container pods). target: k8s target name from config.
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": "pod_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| target | No | ||
| container | No | ||
| namespace | No | ||
| tail_lines | No |