Get Build Console Output
get_build_console_outputRetrieve console output from a specific Jenkins build, or the last build, to inspect logs and diagnose failures. Filter by regex, skip lines with offset, and cap results with a line limit.
Instructions
Get the console output of a specific build in Jenkins
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": {
"fullname": "<fullname>"
},
"name": "get_build_console_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of lines to return after filtering and offset | |
| number | No | The number of the build, if None, get the last build | |
| offset | No | Number of lines to skip from the beginning after filtering, default 0 | |
| pattern | No | Optional regex pattern to filter lines (only matching lines are returned) | |
| fullname | Yes | The fullname of the job |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |