Get exact workflow job logs
gh_get_job_logsStream bounded plaintext logs for a specific GitHub Actions job and attempt, using byte caps, tail, or start/end markers to retrieve exact log evidence.
Instructions
Read-only: stream bounded plaintext log evidence for one exact GitHub Actions job and explicit run attempt. The server verifies exact attempt membership before and after retrieval and never downloads a workflow-run log archive. 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 plaintext source before selection.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Canonical GitHub repository name without path separators. | |
| owner | Yes | Canonical GitHub repository owner. | |
| job_id | Yes | Positive workflow job 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 | ||
| job_id | 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 |