log_search
Search a log file for a pattern to find matching entries, aiding in troubleshooting and monitoring. Optionally limit the number of results.
Instructions
Search a log file for a pattern. Requires log.read.
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>",
"pattern": "<pattern>"
},
"name": "log_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to log file | |
| lines | No | Max results (default: 50) | |
| pattern | Yes | Search pattern (case-insensitive) |