GitHub CI failures
gh_ci_failuresLists failing CI checks for a commit, branch, or PR head and shows failed step names; enable log tails to locate errors in up to three failing jobs.
Instructions
List failing check runs for a commit or branch/PR head, with the failed step names when GitHub exposes them. Read-only. Set include_logs=true to also get the tail of the failing job's log, which is usually where the error is; that costs one extra request per job (up to three jobs).
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": {
"repo": "<repo>",
"ref": "<ref>"
},
"name": "gh_ci_failures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | Commit sha, branch name, tag or PR head ref | |
| repo | Yes | Repository as owner/name | |
| log_lines | No | Lines of log kept per job, centred on the first error | |
| include_logs | No | Fetch the log around the first error for up to three failing jobs (needs GITHUB_TOKEN) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | The ref that was resolved, e.g. a full sha | |
| sha | Yes | Resolved commit sha, null when the ref did not resolve to a commit | |
| repo | Yes | Repository as owner/name | |
| failures | Yes | ||
| checkedRuns | Yes | Check runs GitHub reported for the ref |