Read failed workflow logs
gh_get_failed_run_logsRetrieve failed-step log text from a specific GitHub Actions run attempt, including truncation metadata and SHA-256 fingerprint, without altering or rerunning the workflow.
Instructions
Read-only: return bounded failed-step log text for one exact GitHub Actions run attempt, with truncation metadata and a SHA-256 fingerprint. This never reruns, cancels, deletes, or dispatches a workflow and never requests input.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Canonical GitHub repository name without path separators. | |
| owner | Yes | Canonical GitHub repository owner. | |
| run_id | Yes | Positive workflow run identifier. | |
| attempt | No | Exact run attempt; omit for the latest attempt. | |
| max_bytes | No | Maximum UTF-8 bytes returned, capped by MCP_GH_MAX_FAILED_RUN_LOG_BYTES. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| run_id | Yes | ||
| sha256 | Yes | ||
| status | Yes | ||
| attempt | Yes | ||
| content | Yes | ||
| head_sha | Yes | ||
| truncated | Yes | ||
| conclusion | No | ||
| total_bytes | Yes | ||
| bytes_returned | Yes |