get_crictl_logs
Retrieves recent stdout/stderr logs for a specific CRI container on a Kubernetes node over SSH, enabling diagnosis when the API server is unavailable.
Instructions
Gets the last lines log lines (stdout and stderr merged) of a SPECIFIC CRI container on a
kubernetes node from a remote Linux host via SSH. Works when the API server is down.
Use get_crictl_ps first to find the container ID. Usually requires root.
Optional since limits them to a time window: '30 min ago', '2 hours ago', '30m', '1h30m'
or an absolute UTC time 'YYYY-MM-DDTHH:MM:SSZ'.
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": {
"container_id": "<container_id>",
"host": "<host>",
"user": "<user>"
},
"name": "get_crictl_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | ||
| port | No | ||
| user | Yes | ||
| lines | No | ||
| since | No | ||
| timeout | No | ||
| key_path | No | ||
| password | No | ||
| container_id | Yes | ||
| accept_new_hostkey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||