Github Get Job Log
github_get_job_logFetches the tail of a GitHub Actions job log, capped at max_bytes, so failure details at the end remain accessible even for large logs.
Instructions
Fetches the end of a GitHub Actions job's log, capped at max_bytes. A job reports its failure last, so a cut keeps the tail. GitHub redirects to a storage host for one minute, and the download goes there without the token. See #500.
Workflow and conventions: github_get_skill('ci-checks').
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_owner": "<repo_owner>",
"repo_name": "<repo_name>",
"job_id": "<job_id>"
},
"name": "github_get_job_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The id of a GitHub Actions check run from github_get_pr_status_checks | |
| max_bytes | No | Cap on the log returned, kept from the end. Pass 0 to learn the size without reading the log | |
| repo_name | Yes | ||
| repo_owner | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | Yes | ||
| job_id | Yes | ||
| truncated | Yes | ||
| bytes_total | Yes | ||
| bytes_returned | Yes |