loki_tail_container
Tail and retrieve recent log lines for a single container, with optional minutes and filter. Automatically resolves container names via fuzzy matching.
Instructions
Tail the most recent log lines for a single container.
container: Container name (e.g. nginx, traefik, arr-sonarr).
Exact names work best; an unknown name is resolved against
live container names (service vocabulary like vpn works) —
a unique match is tailed automatically and flagged in the
output, otherwise candidate names are returned.
minutes: How far back to look. Default 15.
limit: Max lines to return. Default 200.
filter: Optional substring filter applied as LogQL |= "filter".
Case-sensitive. Leave empty for no filter.
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": "<container>"
},
"name": "loki_tail_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| filter | No | ||
| minutes | No | ||
| container | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |