Api
Every available tool, grouped by domain and write-safety status. Tools run as durable workflow steps when used with Vercel Workflow.

Each tool is implemented with a durable "use step" boundary, so calls are proper workflow steps (retries, observability, full Node) when you run inside the Vercel Workflow SDK. For a full agent loop that is also durable, use createDurableGithubAgent from @github-tools/sdk/workflow.

AI assistant prompt (cherry-pick tools)

Prompt
Replace createGithubTools() with cherry-picked tool factories from @github-tools/sdk in this file.

- Import only the factories needed; pass the GitHub token string to each
- Keep existing model and prompts unchanged
- Note: each factory still uses durable "use step" when running under Vercel Workflow (https://github-tools.com/guide/durable-workflows)

Repository tools

Available in all presets. These tools manage repositories, branches, and file content:

ToolCapabilityWrite
getRepositoryread repository metadata (name, description, stars, language)
listBrancheslist branches and their HEAD commits
getFileContentread a file at a specific path and ref
createBranchcreate a new branch from an existing branch or commit SHAYes
forkRepositoryfork a repository to your account or an organizationYes
createRepositorycreate a new repository for the authenticated user or an organizationYes
createOrUpdateFilecreate or update a file in the repositoryYes

Pull request tools

Available in code-review and maintainer presets:

ToolCapabilityWrite
listPullRequestslist pull requests filtered by state
getPullRequestread PR details including diff stats
listPullRequestFileslist files changed in a PR with diff status and patches
listPullRequestReviewslist reviews on a PR (approvals, change requests, comments)
createPullRequestopen a new pull requestYes
mergePullRequestmerge a pull requestYes
addPullRequestCommentpost a review commentYes
createPullRequestReviewsubmit a formal review (approve, request changes, or comment) with inline commentsYes

Issue tools

Available in issue-triage and maintainer presets:

ToolCapabilityWrite
listIssueslist issues filtered by state and labels
getIssueread issue details and comments
createIssuecreate a new issueYes
addIssueCommentpost a comment on an issueYes
closeIssueclose an issue threadYes
listLabelslist labels available in a repository
addLabelsadd labels to an issue or pull requestYes
removeLabelremove a label from an issue or pull requestYes

Gist tools

Available in repo-explorer (read-only) and maintainer presets:

ToolCapabilityWrite
listGistslist gists for the authenticated user or a specific user
getGistread a gist including file contents
listGistCommentslist comments on a gist
createGistcreate a new gist with one or more filesYes
updateGistupdate gist description, files, or remove filesYes
deleteGistpermanently delete a gistYes
createGistCommentpost a comment on a gistYes

Workflow tools

Available in repo-explorer (read-only), ci-ops, and maintainer presets:

ToolCapabilityWrite
listWorkflowslist GitHub Actions workflows in a repository
listWorkflowRunslist workflow runs filtered by workflow, branch, status, or event
getWorkflowRunread a workflow run's status, timing, and trigger info
listWorkflowJobslist jobs in a workflow run with step-level status
triggerWorkflowtrigger a workflow via workflow_dispatch eventYes
cancelWorkflowRuncancel an in-progress workflow runYes
rerunWorkflowRunre-run a workflow run, optionally only failed jobsYes

Search and commit tools

Available in all presets:

ToolCapabilityWrite
listCommitslist commit history for a branch
getCommitread a single commit with its diff
getBlameline-level git blame for a file (GraphQL)
searchCodesearch code across repository files
searchRepositoriessearch repositories by query

Identify write operations

All tools marked Write can be gated with requireApproval. In production, always pair them with:

  • a scoped preset to limit which writes are available
  • a fine-grained token to limit what the token can do
  • an explicit approval policy to intercept mutations before execution

External references

Copyright © 2026