log_search
Search log files using structured queries to filter by level, time, message pattern, and surrounding context.
Instructions
Search through log files with structured queries — filter by level, time, message pattern, and context
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": {
"log_path": "<log_path>",
"query": "<query>"
},
"name": "log_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search pattern (regex supported) | |
| api_key | No | ||
| log_path | Yes | Path to log file or directory | |
| max_results | No | ||
| context_lines | No | Lines of context around matches |