Search Logs
search_logsFind matching lines in a loaded log file by keyword or phrase, returning surrounding context and line IDs for deeper error inspection.
Instructions
Search the loaded log file for lines matching a keyword or phrase. Returns matching lines with surrounding context and a line id you can pass to get_error_context for a wider view.
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": {
"query": "<query>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Keyword or phrase to search for, e.g. 'OutOfMemoryError' or 'timeout' | |
| contextSize | No | Lines of context before/after each match (default 2) | |
| caseSensitive | No | Case-sensitive search (default false) |