Shipfox

GitHub tools

Look up the GitHub tools, selectors, permissions, inputs, and outputs available to tool steps and agent steps.

This reference lists the shipped GitHub tool catalog. See the GitHub overview for authentication and setup.

Selectors

A tool step names one method as family.method, such as issue_write.update, in its tool field. A family name alone or family.* is rejected on a tool step, because a tool step calls exactly one operation.

An agent step accepts a family, family.method, or family.* in its integrations: block. For the field contracts, see Tool step fields and Agent integration fields.

Tool catalog

Grant the GitHub App only the repository permissions required by selected tools. The catalog states each tool's read or write sensitivity and its required GitHub permissions. An agent step's integrations entry must set allow_write: true to include a write tool such as merge_pull_request, or Shipfox rejects the step at validation. A tool step needs no flag: naming the write tool is the choice.

The generated catalog also states each operation's repository classification:

  • Declared targets: Shipfox can check repository coordinates from the tool input against the integration connection's repository-access mode.
  • Integration connection: The input does not identify a complete repository target that Shipfox can check locally.

An indirect target note identifies a GitHub-side effect that can reach beyond the declared target. See GitHub repository access for the boundary and its limits.

issues

issue_read

Get information about a specific issue in a GitHub repository.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Repository classification: Declared targets.

Selector tokens: issue_read, issue_read.*, issue_read.get, issue_read.get_comments, issue_read.get_sub_issues, issue_read.get_parent, issue_read.get_labels

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: get, get_comments, get_sub_issues, get_parent, get_labelsRequiredThe read operation to perform on a single issue
issue_numberintegerRequiredThe number of the issue
pageintegerOptionalPage number for pagination
per_pageintegerOptionalResults per page for pagination
issue_read.get

Get information about a specific issue.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Repository classification: Declared targets.

This method has no additional required input.

issue_read.get_comments

Get comments on a specific issue.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Repository classification: Declared targets.

This method has no additional required input.

issue_read.get_sub_issues

Get sub-issues for a specific issue.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Repository classification: Declared targets.

This method has no additional required input.

issue_read.get_parent

Get the parent issue for a specific issue.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Repository classification: Declared targets.

This method has no additional required input.

issue_read.get_labels

Get labels assigned to a specific issue.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Repository classification: Declared targets.

This method has no additional required input.

Output

This schema accepts an object with provider-defined fields.

list_issue_types

List the issue types available to a GitHub repository. Issue types are defined by the owning organization, so the result also describes the organization.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Repository classification: Declared targets.

Selector tokens: list_issue_types

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
Output
FieldTypeRequiredDescription
issue_typesarrayRequired

list_issues

List issues in a GitHub repository. For pagination, use the 'endCursor' from the previous response's 'pageInfo' in the 'after' parameter.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Repository classification: Declared targets.

Selector tokens: list_issues

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
statestring: OPEN, CLOSEDOptionalFilter by state
labelsarrayOptional
orderBystring: CREATED_AT, UPDATED_AT, COMMENTSOptionalOrder issues by field
directionstring: ASC, DESCOptionalOrder direction
sincestringOptionalFilter by date (ISO 8601 timestamp)
afterstringOptionalPagination cursor
firstintegerOptionalNumber of issues to return
Output
FieldTypeRequiredDescription
issuesarrayRequired

search_issues

Search for issues in GitHub repositories using issues search syntax already scoped to is:issue. Provide owner and repo together for a repository-scoped search; omit both for a connection-scoped search. Do not include unquoted repo:, org:, or user: qualifiers; quoted occurrences are treated as literal text.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Repository classification: Declared targets with owner and repo. Selected mode requires both. Without them, all mode uses the integration connection.

Indirect target: The free-form query may match results in repositories other than the declared target.

Selector tokens: search_issues

Input
FieldTypeRequiredDescription
querystringRequiredSearch query using GitHub issues search syntax. Do not include unquoted repo:, org:, or user: qualifiers; quoted occurrences are treated as literal text.
ownerstringConditionalOptional repository owner. Provide together with repo, or omit both for a connection-scoped search.
repostringConditionalOptional repository name. Provide together with owner, or omit both for a connection-scoped search.
sortstring: comments, reactions, reactions-+1, reactions--1, reactions-smile, reactions-thinking_face, reactions-heart, reactions-tada, interactions, created, updatedOptionalSort field
orderstring: asc, descOptionalSort order
pageintegerOptionalPage number for pagination
per_pageintegerOptionalResults per page for pagination
Output
FieldTypeRequiredDescription
issuesarrayRequired

add_issue_comment

Add a comment and/or reaction to a specific issue or issue comment in a GitHub repository. Use this tool with pull requests as well, but only if the user is not asking specifically to add or react to review comments. At least one of body or reaction is required.

Sensitivity: write.

Sensitive: No.

Required permissions: issues:write, pull_requests:write

Repository classification: Declared targets.

Selector tokens: add_issue_comment

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
issue_numberintegerConditionalIssue or pull request number to comment on or react to
comment_idintegerConditionalThe numeric ID of the issue or pull request comment to react to
bodystringConditionalComment content. Required unless reaction is provided
reactionstring: +1, -1, laugh, confused, heart, hooray, rocket, eyesConditionalEmoji reaction to add. Required unless body is provided

At least one of these input combinations is required: issue_number and body; issue_number and reaction; comment_id and reaction.

Output

This schema accepts an object with provider-defined fields.

issue_write

Create a new or update an existing issue in a GitHub repository.

Sensitivity: write.

Sensitive: No.

Required permissions: issues:write

Repository classification: Declared targets.

Selector tokens: issue_write, issue_write.*, issue_write.create, issue_write.update

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: create, updateRequiredWrite operation to perform on a single issue
issue_numberintegerOptionalIssue number to update
titlestringOptionalIssue title
bodystringOptionalIssue body content
assigneesarrayOptional
labelsarrayOptional
milestoneintegerOptionalMilestone number
issue_typestringOptionalType of this issue
statestring: open, closedOptionalNew state
state_reasonstring: completed, not_planned, duplicateOptionalReason for the state change
duplicate_ofintegerOptionalIssue number that this issue is a duplicate of
issue_write.create

Create a new issue.

Sensitivity: write.

Sensitive: No.

Required permissions: issues:write

Repository classification: Declared targets.

This method has no additional required input.

issue_write.update

Update an existing issue.

Sensitivity: write.

Sensitive: No.

Required permissions: issues:write

Repository classification: Declared targets.

This method has no additional required input.

Output

This schema accepts an object with provider-defined fields.

sub_issue_write

Add, remove, or reprioritize a sub-issue under a parent issue in a GitHub repository.

Sensitivity: write.

Sensitive: No.

Required permissions: issues:write

Repository classification: Declared targets.

Indirect target: The opaque child and ordering IDs may refer to another repository in the GitHub installation.

Selector tokens: sub_issue_write, sub_issue_write.*, sub_issue_write.add, sub_issue_write.remove, sub_issue_write.reprioritize

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: add, remove, reprioritizeRequiredThe action to perform on a single sub-issue
issue_numberintegerRequiredThe number of the parent issue
sub_issue_idintegerRequiredThe ID of the sub-issue
replace_parentbooleanOptionalReplace the sub-issue's current parent issue
after_idintegerOptionalThe ID of the sub-issue to be prioritized after
before_idintegerOptionalThe ID of the sub-issue to be prioritized before
sub_issue_write.add

Add a sub-issue to a parent issue.

Sensitivity: write.

Sensitive: No.

Required permissions: issues:write

Repository classification: Declared targets.

Indirect target: The opaque child and ordering IDs may refer to another repository in the GitHub installation.

This method has no additional required input.

sub_issue_write.remove

Remove a sub-issue from a parent issue.

Sensitivity: write.

Sensitive: No.

Required permissions: issues:write

Repository classification: Declared targets.

Indirect target: The opaque child and ordering IDs may refer to another repository in the GitHub installation.

This method has no additional required input.

sub_issue_write.reprioritize

Reprioritize a sub-issue under its parent issue.

Sensitivity: write.

Sensitive: No.

Required permissions: issues:write

Repository classification: Declared targets.

Indirect target: The opaque child and ordering IDs may refer to another repository in the GitHub installation.

This method has no additional required input.

Output

This schema accepts an object with provider-defined fields.

pull requests

pull_request_read

Get information on a specific pull request in a GitHub repository.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read, contents:read, statuses:read, checks:read

Repository classification: Declared targets.

Selector tokens: pull_request_read, pull_request_read.*, pull_request_read.get, pull_request_read.get_diff, pull_request_read.get_status, pull_request_read.get_files, pull_request_read.get_commits, pull_request_read.get_review_comments, pull_request_read.get_review_threads, pull_request_read.get_reviews, pull_request_read.get_comments, pull_request_read.get_check_runs

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: get, get_diff, get_status, get_files, get_commits, get_review_comments, get_review_threads, get_reviews, get_comments, get_check_runsRequiredAction to specify what pull request data needs to be retrieved from GitHub
pull_numberintegerRequiredPull request number
refstringConditionalGit reference to inspect. Required for get_status and get_check_runs
cursorstringOptionalCursor for review comment pagination
pageintegerOptionalPage number for pagination
per_pageintegerOptionalResults per page for pagination
pull_request_read.get

Get information about a specific pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Repository classification: Declared targets.

This method has no additional required input.

pull_request_read.get_diff

Get the diff for a specific pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: contents:read

Repository classification: Declared targets.

This method has no additional required input.

pull_request_read.get_status

Get status information for a specific pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: statuses:read

Repository classification: Declared targets.

Required input for this method: ref.

pull_request_read.get_files

Get files changed in a specific pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Repository classification: Declared targets.

This method has no additional required input.

pull_request_read.get_commits

Get commits in a specific pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Repository classification: Declared targets.

This method has no additional required input.

pull_request_read.get_review_comments

Get review comments for a specific pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Repository classification: Declared targets.

This method has no additional required input.

pull_request_read.get_review_threads

Get review threads, their resolution state, and comments for a specific pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Repository classification: Declared targets.

This method has no additional required input.

pull_request_read.get_reviews

Get reviews for a specific pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Repository classification: Declared targets.

This method has no additional required input.

pull_request_read.get_comments

Get conversation comments for a specific pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Accepted instead: issues:read

Repository classification: Declared targets.

This method has no additional required input.

pull_request_read.get_check_runs

Get check runs for the head commit of a pull request.

Sensitivity: read.

Sensitive: No.

Required permissions: checks:read

Repository classification: Declared targets.

Required input for this method: ref.

Output

This schema accepts an object with provider-defined fields.

list_pull_requests

List pull requests in a GitHub repository. If the user specifies an author, then do not use this tool and use the search_pull_requests tool instead.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Repository classification: Declared targets.

Selector tokens: list_pull_requests

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
statestring: open, closed, allOptionalFilter by state
headstringOptionalFilter by head user/org and branch
basestringOptionalFilter by base branch
sortstring: created, updated, popularity, long-runningOptionalSort by
directionstring: asc, descOptionalSort direction
pageintegerOptionalPage number for pagination
per_pageintegerOptionalResults per page for pagination
Output
FieldTypeRequiredDescription
pull_requestsarrayRequired

search_pull_requests

Search for pull requests in GitHub repositories using issues search syntax already scoped to is:pr. Provide owner and repo together for a repository-scoped search; omit both for a connection-scoped search. Do not include unquoted repo:, org:, or user: qualifiers; quoted occurrences are treated as literal text.

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Repository classification: Declared targets with owner and repo. Selected mode requires both. Without them, all mode uses the integration connection.

Indirect target: The free-form query may match results in repositories other than the declared target.

Selector tokens: search_pull_requests

Input
FieldTypeRequiredDescription
querystringRequiredSearch query using GitHub pull request search syntax. Do not include unquoted repo:, org:, or user: qualifiers; quoted occurrences are treated as literal text.
ownerstringConditionalOptional repository owner. Provide together with repo, or omit both for a connection-scoped search.
repostringConditionalOptional repository name. Provide together with owner, or omit both for a connection-scoped search.
sortstring: comments, reactions, reactions-+1, reactions--1, reactions-smile, reactions-thinking_face, reactions-heart, reactions-tada, interactions, created, updatedOptionalSort field
orderstring: asc, descOptionalSort order
pageintegerOptionalPage number for pagination
per_pageintegerOptionalResults per page for pagination
Output
FieldTypeRequiredDescription
pull_requestsarrayRequired

create_pull_request

Create a new pull request in a GitHub repository.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Declared targets.

Selector tokens: create_pull_request

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
titlestringRequiredPR title
bodystringOptionalPR description
headstringRequiredBranch containing changes
basestringRequiredBranch to merge into
draftbooleanOptionalCreate as draft PR
maintainer_can_modifybooleanOptionalAllow maintainer edits
reviewersarrayOptional
Output
FieldTypeRequiredDescription
pull_requestobjectRequiredCreated GitHub pull request

update_pull_request

Update an existing pull request in a GitHub repository.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Declared targets.

Selector tokens: update_pull_request

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
pull_numberintegerRequiredPull request number to update
titlestringOptionalNew title
bodystringOptionalNew description
statestring: open, closedOptionalNew state
basestringOptionalNew base branch name
maintainer_can_modifybooleanOptionalAllow maintainer edits
reviewersarrayOptional
Output
FieldTypeRequiredDescription
pull_requestobjectRequiredUpdated GitHub pull request

add_reply_to_pull_request_comment

Add a reply and/or reaction to an existing pull request comment. This can create a new comment linked as a reply to the specified comment, add an emoji reaction to the specified comment, or do both. At least one of body or reaction is required.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Declared targets.

Selector tokens: add_reply_to_pull_request_comment

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
pull_numberintegerConditionalPull request number. Required when body is provided
comment_idintegerRequiredThe numeric ID of the pull request review comment to reply or react to
bodystringConditionalThe text of the reply
reactionstring: +1, -1, laugh, confused, heart, hooray, rocket, eyesConditionalEmoji reaction to add

At least one of these input combinations is required: pull_number and body; reaction.

Output

This schema accepts an object with provider-defined fields.

merge_pull_request

Merge a pull request in a GitHub repository.

Sensitivity: write.

Sensitive: Yes.

Required permissions: pull_requests:write, contents:write

Repository classification: Declared targets.

Selector tokens: merge_pull_request

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
pull_numberintegerRequiredPull request number
commit_titlestringOptionalTitle for merge commit
commit_messagestringOptionalExtra detail for merge commit
merge_methodstring: merge, squash, rebaseOptionalMerge method
Output
FieldTypeRequiredDescription
mergeobjectRequiredMerge result

update_pull_request_branch

Update the branch of a pull request with the latest changes from the base branch.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write, contents:write

Repository classification: Declared targets.

Indirect target: GitHub can also update the pull request head branch, which may belong to another repository.

Selector tokens: update_pull_request_branch

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
pull_numberintegerRequiredPull request number
expected_head_shastringOptionalThe expected SHA of the pull request's HEAD ref
Output

This schema accepts an object with provider-defined fields.

pull_request_review_write

Stage, submit, or delete a pull request review. create opens a pending review, add_comment_to_pending_review attaches inline comments to it, and submit_pending publishes it with its summary.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Declared targets.

Selector tokens: pull_request_review_write, pull_request_review_write.*, pull_request_review_write.create, pull_request_review_write.submit_pending, pull_request_review_write.delete_pending

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: create, submit_pending, delete_pendingRequiredThe write operation to perform on pull request review
pull_numberintegerRequiredPull request number
bodystringOptionalReview summary text. Required by submit_pending unless event is APPROVE; not accepted by delete_pending
eventstring: APPROVE, REQUEST_CHANGES, COMMENTOptionalReview action. Required by submit_pending; not accepted by create or delete_pending
commit_idstringOptionalSHA of the commit to review. Only accepted by create
pull_request_review_write.create

Create a pending pull request review.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Declared targets.

This method has no additional required input.

pull_request_review_write.submit_pending

Submit the latest pending pull request review.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Declared targets.

This method has no additional required input.

pull_request_review_write.delete_pending

Delete the latest pending pull request review.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Declared targets.

This method has no additional required input.

Output

This schema accepts an object with provider-defined fields.

pull_request_review_thread_write

Resolve a pull request review thread by opaque node ID. This operation is connection-scoped because the node ID does not declare a repository.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Integration connection.

Indirect target: The review thread node may belong to any repository reachable by the GitHub installation.

Selector tokens: pull_request_review_thread_write, pull_request_review_thread_write.*, pull_request_review_thread_write.resolve

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: resolveRequiredThe write operation to perform on a pull request review thread
thread_idstringRequiredThe node ID of the review thread
pull_request_review_thread_write.resolve

Resolve a pull request review thread.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Integration connection.

Indirect target: The review thread node may belong to any repository reachable by the GitHub installation.

This method has no additional required input.

Output

This schema accepts an object with provider-defined fields.

add_comment_to_pending_review

Add a review comment to the requester's latest pending pull request review. The comment remains part of that pending review until it is submitted; a pending review needs to already exist to call this.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

Repository classification: Declared targets.

Selector tokens: add_comment_to_pending_review

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
pull_numberintegerRequiredPull request number
pathstringRequiredThe relative path to the file that necessitates a comment
bodystringRequiredThe text of the review comment
subject_typestring: LINE, FILEOptionalThe level at which the comment is targeted. LINE (default) requires line and side; FILE accepts no position fields
lineintegerOptionalThe line of the blob in the pull request diff. Required for LINE
sidestring: LEFT, RIGHTOptionalThe side of the diff to comment on. Required for LINE
start_lineintegerOptionalThe first line of a multi-line comment range. Must be lower than line and paired with start_side
start_sidestring: LEFT, RIGHTOptionalThe starting side of a multi-line comment range. Paired with start_line
Output

This schema accepts an object with provider-defined fields.

checks

check_run_write

Create or update a check run for a commit in a GitHub repository.

Sensitivity: write.

Sensitive: No.

Required permissions: checks:write

Repository classification: Declared targets.

Selector tokens: check_run_write, check_run_write.*, check_run_write.create, check_run_write.update

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: create, updateRequiredThe check-run operation to perform
check_run_idintegerConditionalThe positive numeric ID of the check run to update
namestringConditionalStable display name for the check
head_shastringConditionalFull, non-zero 40- or 64-character hexadecimal commit object ID
details_urlstringOptionalAbsolute HTTP or HTTPS link with more details
external_idstringOptionalCaller-owned correlation key
statusstring: queued, in_progress, completedOptionalCheck-run lifecycle status
started_atstringOptionalRFC 3339 timestamp when the check started; leap seconds are accepted only when the normalized UTC instant is 23:59:60 on June 30 or December 31
conclusionstring: action_required, cancelled, failure, neutral, success, skipped, timed_outOptionalFinal check-run conclusion
completed_atstringOptionalRFC 3339 timestamp when the check completed; leap seconds are accepted only when the normalized UTC instant is 23:59:60 on June 30 or December 31
outputobjectOptional
check_run_write.create

Create a check run for a commit in a GitHub repository.

Sensitivity: write.

Sensitive: No.

Required permissions: checks:write

Repository classification: Declared targets.

Required input for this method: name, head_sha.

check_run_write.update

Update an existing check run in a GitHub repository.

Sensitivity: write.

Sensitive: No.

Required permissions: checks:write

Repository classification: Declared targets.

Required input for this method: check_run_id.

Output
FieldTypeRequiredDescription
check_runobjectRequired

repository

create_commit

Create a commit on an existing branch in a GitHub repository. The commit is authored and signed by GitHub on behalf of the Shipfox bot (shipfox-ai[bot]) and shows the Verified badge. Renames are expressed as a deletion of the old path plus an addition of the new path. File contents are validated server-side and limited to a total of about 1 MiB per call; keep edits small and explicit. Text contents are sent as utf8 and transcoded to base64 by the server; binary contents can be provided with encoding base64. The expected_head_oid must be the current head of the branch (compare-and-swap): if the branch moved, the commit is rejected with a stale-head error and the call should be retried with the new head. When issuing several dependent commits, derive each expected_head_oid from the returned oid of the previous commit so the commits land in order. Branch protection rules are the only barrier to writing the default branch. Files under .github/workflows need the workflows permission, which the installation token may not carry; such changes are rejected with access-denied when it is missing.

Sensitivity: write.

Sensitive: No.

Required permissions: contents:write

Repository classification: Declared targets.

Selector tokens: create_commit

Input
FieldTypeRequiredDescription
repositorystringRequiredRepository in owner/name format. Must be a repository the connection can access.
branchstringRequiredThe name of the existing branch to commit to
expected_head_oidstringRequiredThe commit oid (40 or 64 hexadecimal characters) the branch head is expected to point to (compare-and-swap)
messageobjectRequired
additionsarrayOptional
deletionsarrayOptional
Output
FieldTypeRequiredDescription
commitobjectRequired

create_branch

Create a branch in a GitHub repository pointing at a commit. Provide from as a 40- or 64-character commit oid (for example, the checkout commit of a step) or as an existing branch name, which the server resolves to its current head at call time. An existing branch is reused when it already points at the requested commit, and rejected otherwise. Creating a branch fires GitHub push-event workflows from the new ref, so only branch from commits you intend to activate.

Sensitivity: write.

Sensitive: No.

Required permissions: contents:write

Repository classification: Declared targets.

Selector tokens: create_branch

Input
FieldTypeRequiredDescription
repositorystringRequiredThe repository in owner/name form
branchstringRequiredThe name of the branch to create, without any refs/ prefix
fromstringRequiredThe 40- or 64-character commit oid or existing branch name the new branch points at
Output
FieldTypeRequiredDescription
branchstringRequiredThe name of the created branch
oidstringRequiredThe commit oid the created branch points at
urlstringRequiredThe API URL of the created git ref

actions

actions_list

Tools for listing GitHub Actions resources. Use this tool to list workflows in a repository, or list workflow runs, jobs, and artifacts for a specific workflow or workflow run.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

Selector tokens: actions_list, actions_list.*, actions_list.list_workflows, actions_list.list_workflow_runs, actions_list.list_workflow_jobs, actions_list.list_workflow_run_artifacts

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: list_workflows, list_workflow_runs, list_workflow_jobs, list_workflow_run_artifactsRequiredThe action to perform
resource_idstringOptionalThe unique identifier of the resource
workflow_runs_filterobjectOptionalFilters for workflow runs
workflow_jobs_filterobjectOptionalFilters for workflow jobs
pageintegerOptionalPage number for pagination
per_pageintegerOptionalResults per page for pagination
actions_list.list_workflows

List workflows in a repository.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

actions_list.list_workflow_runs

List workflow runs in a repository or for a workflow.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

actions_list.list_workflow_jobs

List jobs for a workflow run.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

actions_list.list_workflow_run_artifacts

List artifacts for a workflow run.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

Output

This schema accepts an object with provider-defined fields.

actions_get

Get details about specific GitHub Actions resources. Use this tool to get details about individual workflows, workflow runs, jobs, and artifacts by their unique IDs.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

Selector tokens: actions_get, actions_get.*, actions_get.get_workflow, actions_get.get_workflow_run, actions_get.get_workflow_job, actions_get.download_workflow_run_artifact, actions_get.get_workflow_run_usage, actions_get.get_workflow_run_logs_url

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: get_workflow, get_workflow_run, get_workflow_job, download_workflow_run_artifact, get_workflow_run_usage, get_workflow_run_logs_urlRequiredThe method to execute
resource_idstringRequiredThe unique identifier of the resource
actions_get.get_workflow

Get details for a workflow.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

actions_get.get_workflow_run

Get details for a workflow run.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

actions_get.get_workflow_job

Get details for a workflow job.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

actions_get.download_workflow_run_artifact

Download a workflow run artifact.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

actions_get.get_workflow_run_usage

Get workflow run usage.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

actions_get.get_workflow_run_logs_url

Get a workflow run logs download URL.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

This method has no additional required input.

Output

This schema accepts an object with provider-defined fields.

actions_run_trigger

Trigger GitHub Actions workflow operations, including running, re-running, cancelling workflow runs, and deleting workflow run logs.

Sensitivity: write.

Sensitive: Yes.

Required permissions: actions:write

Repository classification: Declared targets.

Selector tokens: actions_run_trigger, actions_run_trigger.*, actions_run_trigger.run_workflow, actions_run_trigger.rerun_workflow_run, actions_run_trigger.rerun_failed_jobs, actions_run_trigger.cancel_workflow_run, actions_run_trigger.delete_workflow_run_logs

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
methodstring: run_workflow, rerun_workflow_run, rerun_failed_jobs, cancel_workflow_run, delete_workflow_run_logsRequiredThe method to execute
workflow_idstringConditionalThe workflow ID or workflow file name. Required for run_workflow
refstringConditionalThe git reference for the workflow. Required for run_workflow
inputsobjectOptionalInputs the workflow accepts. Only used for run_workflow
run_idintegerConditionalThe ID of the workflow run. Required for all methods except run_workflow
actions_run_trigger.run_workflow

Trigger a workflow_dispatch run.

Sensitivity: write.

Sensitive: Yes.

Required permissions: actions:write

Repository classification: Declared targets.

Required input for this method: workflow_id, ref.

actions_run_trigger.rerun_workflow_run

Rerun a workflow run.

Sensitivity: write.

Sensitive: No.

Required permissions: actions:write

Repository classification: Declared targets.

Required input for this method: run_id.

actions_run_trigger.rerun_failed_jobs

Rerun failed jobs in a workflow run.

Sensitivity: write.

Sensitive: No.

Required permissions: actions:write

Repository classification: Declared targets.

Required input for this method: run_id.

actions_run_trigger.cancel_workflow_run

Cancel a workflow run.

Sensitivity: write.

Sensitive: No.

Required permissions: actions:write

Repository classification: Declared targets.

Required input for this method: run_id.

actions_run_trigger.delete_workflow_run_logs

Delete logs for a workflow run.

Sensitivity: write.

Sensitive: Yes.

Required permissions: actions:write

Repository classification: Declared targets.

Required input for this method: run_id.

Output

This schema accepts an object with provider-defined fields.

get_job_logs

Get logs for GitHub Actions workflow jobs. Use this tool to retrieve logs for a specific job or all failed jobs in a workflow run. For single job logs, provide job_id. For all failed jobs in a run, provide run_id with failed_only=true.

Sensitivity: read.

Sensitive: No.

Required permissions: actions:read

Repository classification: Declared targets.

Selector tokens: get_job_logs

Input
FieldTypeRequiredDescription
ownerstringRequiredRepository owner
repostringRequiredRepository name
job_idnumberOptionalThe unique identifier of the workflow job. Required when getting logs for a single job.
run_idnumberOptionalThe unique identifier of the workflow run. Required when failed_only is true to get logs for all failed jobs in the run.
failed_onlybooleanOptionalWhen true, gets logs for all failed jobs in the workflow run specified by run_id. Requires run_id to be provided.
return_contentbooleanOptionalReturns actual log content instead of URLs
tail_linesnumberOptionalNumber of lines to return from the end of the log
Output

This schema accepts an object with provider-defined fields.

Was this page helpful?
Edit this page on GitHub

On this page