log-collapse
Collapse a log into error signatures with counts and first/last occurrence — Groups the records of a log or CI output by signature: timestamps, UUIDs, IPs, hex ids, quoted values and numbers are replaced by placeholders, stack-trace continuation lines are attached to their record and contribute their first frames, and each signature reports its count, severity, first and last line, first and last timestamp (as written, when the line starts with an ISO 8601 timestamp) and a
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": {
"text": "<text>"
},
"name": "log-collapse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Log text, at most 8000 lines. | |
| topN | No | Signatures returned, by count. Default 20. | |
| minSeverity | No | Ignore records below this severity. Default: keep all. | |
| signatureFrames | No | Continuation lines (stack frames) that are part of the signature. Default 3. |