Shipfox

GitHub agent tools

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

This reference lists the shipped GitHub agent-tool catalog. See the GitHub overview for availability and setup.

Selectors

Use a tool family, family.method, or family.* in an agent step's integrations: block. For the agent integration contract, see the workflow schema reference.

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.

issues

issue_read

Get information about a specific issue in a GitHub repository.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

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

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

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

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

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

This method has no additional required input.

Output

This schema accepts an object with provider-defined fields.

list_issue_types

List supported issue types for a repository or its owner organization. When repo is omitted, returns org-level issue types directly.

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Selector tokens: list_issue_types

Input
FieldTypeRequiredDescription
ownerstringRequiredThe account owner of the repository or organization
repostringOptionalThe name of the repository
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

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

Sensitivity: read.

Sensitive: No.

Required permissions: issues:read

Selector tokens: search_issues

Input
FieldTypeRequiredDescription
querystringRequiredSearch query using GitHub issues search syntax
ownerstringOptionalOptional repository owner
repostringOptionalOptional repository name
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

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

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

This method has no additional required input.

issue_write.update

Update an existing issue.

Sensitivity: write.

Sensitive: No.

Required permissions: issues:write

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

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

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

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

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, issues:read

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_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_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

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: pull_requests:read

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: pull_requests:read

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

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

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

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

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: issues:read

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: pull_requests:read

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

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

Sensitivity: read.

Sensitive: No.

Required permissions: pull_requests:read

Selector tokens: search_pull_requests

Input
FieldTypeRequiredDescription
querystringRequiredSearch query using GitHub pull request search syntax
ownerstringOptionalOptional repository owner
repostringOptionalOptional repository name
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

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

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

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

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

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

Create and/or submit, delete review of a pull request.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

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 comment text
eventstring: APPROVE, REQUEST_CHANGES, COMMENTOptionalReview action to perform
commit_idstringOptionalSHA of commit to review
pull_request_review_write.create

Create a pending pull request review.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

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

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

This method has no additional required input.

Output

This schema accepts an object with provider-defined fields.

add_comment_to_pending_review

Add review comment to the requester's latest pending pull request review. A pending review needs to already exist to call this.

Sensitivity: write.

Sensitive: No.

Required permissions: pull_requests:write

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
lineintegerOptionalThe line of the blob in the pull request diff
sidestring: LEFT, RIGHTOptionalThe side of the diff to comment on
start_lineintegerOptionalThe first line of a multi-line comment range
start_sidestring: LEFT, RIGHTOptionalThe starting side of a multi-line comment range
Output

This schema accepts an object with provider-defined fields.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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