search_logs
Search log entries by combining regex pattern, log level, and time range filters to return matching entries up to a specified limit.
Instructions
Search log entries by regex pattern, log level, and/or time range.
Returns matching entries (up to max_results). Combine filters to narrow results.
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": {
"file_path": "<file_path>"
},
"name": "search_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| pattern | No | ||
| log_level | No | ||
| start_time | No | ||
| end_time | No | ||
| max_results | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |