ollama_triage_logs
Triage logs. Stable-shape log digest: {errors, warnings, suspected_root_cause}. Single: pass log_text. BATCH: pass items:[{id,log_text}] for triaging many log blobs at once (multiple CI runs, matrix legs, per-service logs) — returns one envelope with per-item entries. Use before grep-storms on long CI/test output.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
log_text |
string | no | — | Single log output to triage. Use this OR items, not both. Max 5MB. Oversize inputs are refused with a hint pointing at batch-splitting or pre-filtering for ERROR/WARN lines. |
items |
object[] | no | — | Batch of log blobs, each with a stable id. Returns one batch envelope with per-item {id, ok, result|error} entries. Each log_text is capped at 5MB — oversize items refuse with a hint on splitting or pre-filtering. |
patterns |
any | no | — | Optional regex patterns the triage should bias toward — applied to every item in a batch. |
Full input schema
Section titled “Full input schema”The JSON Schema below is generated from the same zod schema the server validates against at the wire — it cannot drift from runtime behavior.
{ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "log_text": { "description": "Single log output to triage. Use this OR items, not both. Max 5MB. Oversize inputs are refused with a hint pointing at batch-splitting or pre-filtering for ERROR/WARN lines.", "type": "string", "minLength": 1, "maxLength": 5000000 }, "items": { "description": "Batch of log blobs, each with a stable id. Returns one batch envelope with per-item {id, ok, result|error} entries. Each log_text is capped at 5MB — oversize items refuse with a hint on splitting or pre-filtering.", "minItems": 1, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "minLength": 1, "description": "Caller-provided, unique within the batch." }, "log_text": { "type": "string", "minLength": 1, "maxLength": 5000000 } }, "required": [ "id", "log_text" ] } }, "patterns": { "description": "Optional regex patterns the triage should bias toward — applied to every item in a batch." } }}Envelope
Section titled “Envelope”Every tool returns the standard envelope — tier_used, model, tokens_in/tokens_out, elapsed_ms, backend provenance, warnings. See Envelope & tiers.
Source
Section titled “Source”Schema + handler: src/tools/triageLogs.ts · registration: src/index.ts
Back to the Tool Reference.