GitHub Actions · Capability

GitHub Actions API — Jobs

GitHub Actions API — Jobs. 5 operations. Lead operation: Github Actions Get a Job for a Workflow Run. Self-contained Naftiko capability covering one Github Actions business surface.

Run with Naftiko Github ActionsJobs

What You Can Do

GET
Getjobforworkflowrun — Github Actions Get a Job for a Workflow Run
/v1/repos/{owner}/{repo}/actions/jobs/{job-id}
GET
Downloadjoblogsforworkflowrun — Github Actions Download Job Logs for a Workflow Run
/v1/repos/{owner}/{repo}/actions/jobs/{job-id}/logs
POST
Rerunjobforworkflowrun — Github Actions Re-run a Job From a Workflow Run
/v1/repos/{owner}/{repo}/actions/jobs/{job-id}/rerun
GET
Listjobsforworkflowrunattempt — Github Actions List Jobs for a Workflow Run Attempt
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/jobs
GET
Listjobsforworkflowrun — Github Actions List Jobs for a Workflow Run
/v1/repos/{owner}/{repo}/actions/runs/{run-id}/jobs

MCP Tools

github-actions-get-job-workflow

Github Actions Get a Job for a Workflow Run

read-only idempotent
github-actions-download-job-logs

Github Actions Download Job Logs for a Workflow Run

read-only idempotent
github-actions-re-run-job

Github Actions Re-run a Job From a Workflow Run

github-actions-list-jobs-workflow

Github Actions List Jobs for a Workflow Run Attempt

read-only idempotent
github-actions-list-jobs-workflow-2

Github Actions List Jobs for a Workflow Run

read-only idempotent

Capability Spec

github-actions-jobs.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GitHub Actions API — Jobs
  description: 'GitHub Actions API — Jobs. 5 operations. Lead operation: Github Actions Get a Job for a Workflow Run. Self-contained
    Naftiko capability covering one Github Actions business surface.'
  tags:
  - Github Actions
  - Jobs
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GITHUB_ACTIONS_API_KEY: GITHUB_ACTIONS_API_KEY
capability:
  consumes:
  - type: http
    namespace: github-actions-jobs
    baseUri: https://api.github.com
    description: GitHub Actions API — Jobs business capability. Self-contained, no shared references.
    resources:
    - name: repos-owner-repo-actions-jobs-job_id
      path: /repos/{owner}/{repo}/actions/jobs/{job_id}
      operations:
      - name: getjobforworkflowrun
        method: GET
        description: Github Actions Get a Job for a Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: job_id
          in: path
          type: integer
          required: true
    - name: repos-owner-repo-actions-jobs-job_id-logs
      path: /repos/{owner}/{repo}/actions/jobs/{job_id}/logs
      operations:
      - name: downloadjoblogsforworkflowrun
        method: GET
        description: Github Actions Download Job Logs for a Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: job_id
          in: path
          type: integer
          required: true
    - name: repos-owner-repo-actions-jobs-job_id-rerun
      path: /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun
      operations:
      - name: rerunjobforworkflowrun
        method: POST
        description: Github Actions Re-run a Job From a Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: job_id
          in: path
          type: integer
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: repos-owner-repo-actions-runs-run_id-attempts-attempt_number-jobs
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs
      operations:
      - name: listjobsforworkflowrunattempt
        method: GET
        description: Github Actions List Jobs for a Workflow Run Attempt
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: repos-owner-repo-actions-runs-run_id-jobs
      path: /repos/{owner}/{repo}/actions/runs/{run_id}/jobs
      operations:
      - name: listjobsforworkflowrun
        method: GET
        description: Github Actions List Jobs for a Workflow Run
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: filter
          in: query
          type: string
    authentication:
      type: bearer
      token: '{{env.GITHUB_ACTIONS_API_KEY}}'
  exposes:
  - type: rest
    namespace: github-actions-jobs-rest
    port: 8080
    description: REST adapter for GitHub Actions API — Jobs. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/repos/{owner}/{repo}/actions/jobs/{job-id}
      name: repos-owner-repo-actions-jobs-job-id
      description: REST surface for repos-owner-repo-actions-jobs-job_id.
      operations:
      - method: GET
        name: getjobforworkflowrun
        description: Github Actions Get a Job for a Workflow Run
        call: github-actions-jobs.getjobforworkflowrun
        with:
          job_id: rest.job_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/jobs/{job-id}/logs
      name: repos-owner-repo-actions-jobs-job-id-logs
      description: REST surface for repos-owner-repo-actions-jobs-job_id-logs.
      operations:
      - method: GET
        name: downloadjoblogsforworkflowrun
        description: Github Actions Download Job Logs for a Workflow Run
        call: github-actions-jobs.downloadjoblogsforworkflowrun
        with:
          job_id: rest.job_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/jobs/{job-id}/rerun
      name: repos-owner-repo-actions-jobs-job-id-rerun
      description: REST surface for repos-owner-repo-actions-jobs-job_id-rerun.
      operations:
      - method: POST
        name: rerunjobforworkflowrun
        description: Github Actions Re-run a Job From a Workflow Run
        call: github-actions-jobs.rerunjobforworkflowrun
        with:
          job_id: rest.job_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/attempts/{attempt-number}/jobs
      name: repos-owner-repo-actions-runs-run-id-attempts-attempt-number-jobs
      description: REST surface for repos-owner-repo-actions-runs-run_id-attempts-attempt_number-jobs.
      operations:
      - method: GET
        name: listjobsforworkflowrunattempt
        description: Github Actions List Jobs for a Workflow Run Attempt
        call: github-actions-jobs.listjobsforworkflowrunattempt
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/repos/{owner}/{repo}/actions/runs/{run-id}/jobs
      name: repos-owner-repo-actions-runs-run-id-jobs
      description: REST surface for repos-owner-repo-actions-runs-run_id-jobs.
      operations:
      - method: GET
        name: listjobsforworkflowrun
        description: Github Actions List Jobs for a Workflow Run
        call: github-actions-jobs.listjobsforworkflowrun
        with:
          filter: rest.filter
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: github-actions-jobs-mcp
    port: 9090
    transport: http
    description: MCP adapter for GitHub Actions API — Jobs. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: github-actions-get-job-workflow
      description: Github Actions Get a Job for a Workflow Run
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-actions-jobs.getjobforworkflowrun
      with:
        job_id: tools.job_id
      outputParameters:
      - type: object
        mapping: $.
    - name: github-actions-download-job-logs
      description: Github Actions Download Job Logs for a Workflow Run
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-actions-jobs.downloadjoblogsforworkflowrun
      with:
        job_id: tools.job_id
      outputParameters:
      - type: object
        mapping: $.
    - name: github-actions-re-run-job
      description: Github Actions Re-run a Job From a Workflow Run
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: github-actions-jobs.rerunjobforworkflowrun
      with:
        job_id: tools.job_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: github-actions-list-jobs-workflow
      description: Github Actions List Jobs for a Workflow Run Attempt
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-actions-jobs.listjobsforworkflowrunattempt
      outputParameters:
      - type: object
        mapping: $.
    - name: github-actions-list-jobs-workflow-2
      description: Github Actions List Jobs for a Workflow Run
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: github-actions-jobs.listjobsforworkflowrun
      with:
        filter: tools.filter
      outputParameters:
      - type: object
        mapping: $.