loki_tail_errors
Tail recent error-level logs from a Loki stream selector over a configurable lookback window. Spot partial results via the truncated flag and raise the limit to capture complete error trails.
Instructions
[READ] Canned error-level read for a stream selector (error line-filter).
Args: selector: A Loki stream selector (e.g. '{app="api"}' or 'app="api"'). hours: Lookback window in hours (capped at the tool's max lookback). limit: Max log lines to return (clamped to the tool's max line limit). target: Loki target name from config; omit for the default.
Returns an envelope with returned/limit/truncated. If
truncated is true the result is partial — re-run with a higher limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hours | No | ||
| limit | No | ||
| target | No | ||
| selector | Yes |