find_traces_in_file
Scan a log file to find every stack trace, group them by fingerprint, and return counts, timestamps or line numbers, exception types, and innermost application frames.
Instructions
Scan a log file for every stack trace and group them by fingerprint.
Streams the file (never loads it whole; caps: 256 MB scanned, 1000 distinct groups) and returns the groups sorted by count with first/last seen timestamps (when the lines have ISO timestamps) or line numbers, the exception, and the innermost application frame. The file must be inside the --dir sandbox (relative paths are relative to the first --dir).
Args: path: Log file path, absolute or relative to the sandbox directory. top: How many groups to list (default 15). redact: Remove secrets etc. from the output (default true).
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": {
"path": "<path>"
},
"name": "find_traces_in_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| path | Yes | ||
| redact | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |