search_log
Search Jenkins build logs for a regex pattern to pinpoint error messages or specific events, returning matching lines with surrounding context for faster debugging.
Instructions
Search build log for pattern and return matching lines with 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": {
"name": "<name>",
"pattern": "<pattern>"
},
"name": "search_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full job name | |
| number | No | Build number or 'last' | last |
| pattern | Yes | Regex pattern to search for | |
| window_lines | No | Lines of context before/after match | |
| max_bytes | No | Maximum bytes to search |