Get Log Lines
get_log_linesRetrieves a numbered window of a Jenkins build's cleaned console log so you can inspect specific lines without loading the full output. Optionally hides pipeline and download noise.
Instructions
A window of the cleaned console log with line numbers (max 400 lines per call). Use line numbers from the other tools. hide_noise drops [Pipeline]/download/progress lines.
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": {
"job": "<job>"
},
"name": "get_log_lines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | Yes | Job full name like 'cd/master/my-app' (folders separated by '/'), or a Jenkins job/build URL (instance is then detected from the URL). | |
| build | No | Build number or permalink: lastBuild, lastFailedBuild, lastSuccessfulBuild, lastCompletedBuild, lastUnsuccessfulBuild. Empty = build from the URL, else lastBuild. | |
| count | No | ||
| start | No | 1-based first line; 0 or negative = tail of the log | |
| instance | No | Jenkins instance name from list_instances. Empty = default instance. | |
| hide_noise | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |