Get exact workflow run logs
gh_get_run_logsStream bounded logs for a specific GitHub Actions workflow run attempt, using literal start/end markers or tail bytes to retrieve exact evidence. Ensures attempt fidelity without zip downloads.
Instructions
Read-only: stream bounded log evidence for one exact GitHub Actions workflow run attempt by enumerating that attempt's jobs and reading their plaintext job-log endpoints in stable job-ID order. The run-log ZIP endpoint is never used. The attempt is mandatory and is never silently replaced by the latest attempt. Supports a UTF-8 byte cap, a literal tail selection, or inclusive literal start/end markers; it exposes no regex, shell, rerun, cancel, delete, or dispatch operation. sha256 fingerprints the complete normalized aggregate before selection.
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 | Yes | Exact workflow run attempt. | |
| max_bytes | No | Maximum returned UTF-8 bytes, capped by server policy. | |
| end_marker | No | Inclusive literal end marker at or after the selected start. | |
| tail_bytes | No | Return only the final bounded UTF-8 bytes of the source log. | |
| start_marker | No | Inclusive literal start marker; never treated as a regex. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| text | Yes | ||
| run_id | Yes | ||
| sha256 | Yes | ||
| status | Yes | ||
| attempt | Yes | ||
| warning | No | ||
| head_sha | Yes | ||
| truncated | Yes | ||
| conclusion | No | ||
| total_bytes | Yes | ||
| bytes_returned | Yes |