build_console
Retrieve Jenkins build console output (last 100 lines by default) for a specific build or the latest build, with optional line count.
Instructions
Get console output (last 100 lines) of a specific build or the latest 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": {
"jobName": "<jobName>"
},
"name": "build_console"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | Number of lines from end (default: 100) | |
| jobName | Yes | Jenkins job name | |
| buildNumber | No | Build number (omit for latest) |