get_build_console_output
Retrieve Jenkins build console output, with optional regex filtering, line offset, and limit to isolate relevant log entries.
Instructions
Get the console output of a specific build in Jenkins
Args: fullname: The fullname of the job number: The number of the build, if None, get the last build pattern: Optional regex pattern to filter lines (only matching lines are returned) offset: Number of lines to skip from the beginning after filtering, default 0 limit: Maximum number of lines to return after filtering and offset
Returns: The console output of the build
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 | ||
| number | No | ||
| offset | No | ||
| pattern | No | ||
| fullname | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |