get_build_log
Retrieve Jenkins build logs with smart truncation, regex filtering, and redaction. Get a summary or full log, control byte range, and filter lines.
Instructions
Get build log with smart truncation and filtering. Returns summary by default, full text on request.
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>"
},
"name": "get_build_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Full job name | |
| number | No | Build number or 'last' | last |
| start | No | Starting byte offset | |
| max_bytes | No | Maximum bytes to retrieve | |
| filter_regex | No | Regex pattern to filter log lines | |
| redact | No | Remove ANSI codes and secret masks | |
| format | No | Output format | summary |