get_kubectl_logs
Fetch recent log lines from a single Kubernetes pod over SSH, optionally retrieving logs from the previous crashed instance for CrashLoopBackOff; secret-like values are redacted.
Instructions
The last lines log lines of one pod (kubectl logs); previous=True for the crashed
instance (CrashLoopBackOff). Values that look like secrets are redacted.
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>",
"host": "<host>",
"user": "<user>"
},
"name": "get_kubectl_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pod | Yes | ||
| host | Yes | ||
| port | No | ||
| user | Yes | ||
| lines | No | ||
| since | No | ||
| timeout | No | ||
| key_path | No | ||
| previous | No | ||
| container | No | ||
| namespace | No | default | |
| password_env | No | ||
| accept_new_hostkey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||