Canonical: https://weaveos.com/reference/github/read-actions-job-logs

1. [Software capabilities](https://weaveos.com/reference)
2. /[GitHub](https://weaveos.com/reference/github)
3. /Read GitHub Actions job logs

GitHub capability

# Read GitHub Actions job logs

GitHub’s MCP server can read Actions job logs when the Actions toolset is available. Use the REST endpoint to download one job’s log, or use gh or the Actions page to inspect a failure by step.

Documentation reviewed November 26, 2026

## Ways to do it

API

### GET /repos/{owner}/{repo}/actions/jobs/{job\_id}/logs

Request the log for one job and follow the download redirect.

- Requirements

  Repository read access and a numeric job ID. A fine-grained token for a private repository needs Actions read permission.

- Limitations

  The redirect URL expires after one minute.

Example

```
curl --fail --location -H "Authorization: Bearer $GITHUB_TOKEN" \
  "https://api.github.com/repos/$OWNER/$REPO/actions/jobs/$JOB_ID/logs"
```

[Read source: GitHub REST API job logs ↗](https://docs.github.com/en/rest/actions/workflow-jobs#download-job-logs-for-a-workflow-run)

MCP

### get\_job\_logs

Retrieve the log for a workflow job from a client connected to GitHub’s MCP server.

- Requirements

  Access to the repository and a connection that exposes the Actions toolset.

- Limitations

  Set return\_content to true when you need the log text in the tool response. With the default setting, the tool returns URLs.

Example

```
{
  "owner": "OWNER",
  "repo": "REPO",
  "job_id": 123456,
  "return_content": true
}
```

[Read source: GitHub MCP Server Actions tools ↗](https://github.com/github/github-mcp-server/blob/main/pkg/github/__toolsnaps__/get_job_logs_actions.snap)

CLI

### gh run view --job \<job-id> --log

Print one job’s log in your terminal. Add --log-failed in place of --log to focus on failed steps.

- Requirements

  GitHub CLI authenticated for the repository and the numeric job ID.

- Limitations

  Some lines can appear under UNKNOWN STEP when gh cannot associate them with a specific step.

Example

```
gh run view --repo "$OWNER/$REPO" --job "$JOB_ID" --log
```

[Read source: GitHub CLI run view ↗](https://cli.github.com/manual/gh_run_view)

Interface

### Actions → workflow run → job

Open a run, select the job, and expand the step you want to inspect.

- Requirements

  Access to the repository’s Actions page and the run.

- Limitations

  Searching the job log covers expanded steps. Expand the relevant steps first.

[Read source: GitHub workflow run logs ↗](https://docs.github.com/en/actions/how-tos/monitor-workflows/use-workflow-run-logs)

## More from GitHub

[View all GitHub capabilities →](https://weaveos.com/reference/github)

- [Read checks on a GitHub pull request↗](https://weaveos.com/reference/github/read-pull-request-checks)
- [List GitHub Actions workflow runs↗](https://weaveos.com/reference/github/list-actions-workflow-runs)
- [Read a GitHub pull request diff↗](https://weaveos.com/reference/github/read-pull-request-diff)
- [Download GitHub Actions artifacts↗](https://weaveos.com/reference/github/download-actions-artifacts)
