find_errors
Find error lines in log files by matching common patterns like ERROR, Exception, FATAL. Quickly diagnose issues.
Instructions
Quickly finds error lines in a log file by matching common error patterns (ERROR, Exception, FATAL, Failed, Traceback, panic, etc.). Ideal for quick diagnostics.
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": {
"filename": "<filename>"
},
"name": "find_errors"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Name of the log file to search | |
| max_tokens | No | Maximum tokens to return (default: 4000, max: 100000). Uses ~4 chars per token estimation. | |
| context_lines | No | Number of lines to show before and after each error (default: 2, max: 10) | |
| include_warnings | No | Also include warning-level messages (default: false) |