Get Log Errors
get_log_errorsExtract and group de-duplicated error lines from a Jenkins build log, with line numbers, stage, severity, stack traces, and known-issue annotations to speed troubleshooting.
Instructions
All detected error lines of a build, de-duplicated into groups (same message = one group with a count), in order of first appearance, with line number, stage, severity and a shortened stack trace. Severity 'warn' = error text inside a line logged as WARN (often retries, rarely the cause); category 'generic' = an 'Error:'/'FATAL:' line no specific rule knows (ranked after specific errors). Groups the knowledge base knows are annotated ('known issue', 'known noise', 'consequence of'). Generic Jenkins wrapper messages ('script returned exit code 1') are hidden unless include_generic.
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_errors"
}
}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. | |
| category | No | Optional filter: maven, tests, java, helm, k8s, ansible, docker, network, nexus, system, jenkins, generic or a custom category | |
| instance | No | Jenkins instance name from list_instances. Empty = default instance. | |
| max_groups | No | ||
| include_generic | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |