get_crictl_logs
Fetch recent log lines from a CRI container with crictl, even when the Kubernetes API server is down; secret-like values are redacted.
Instructions
The last lines log lines of one CRI container (crictl logs); works with the API server
down. 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": {
"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 | ||
| container_id | Yes | ||
| password_env | No | ||
| accept_new_hostkey | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||