Tool catalog
All 97 tools by domain, with the 48 write tools marked.
Beginner7 min read
createGithubTools() returns 97 GitHub tools, 49 read and 48 write, grouped below by GitHub domain. The 48 marked Write ask for approval by default. Tools covers output shape, paging and overrides, and Presets lists which tools each job gets.
Repository
| Tool | Write | What it does |
|---|---|---|
getRepository | Get information about a GitHub repository including description, stars, forks, language, and default branch. | |
listBranches | List branches in a GitHub repository. | |
getFileContent | Get the content of a file from a GitHub repository. Reads a line range with startLine/endLine or maxLines. | |
getRepositoryTree | List the file and directory structure of a repository at a given ref. Takes a path prefix. | |
createBranch | Yes | Create a new branch in a GitHub repository from an existing branch or commit SHA. |
deleteBranch | Yes | Delete a branch from a GitHub repository permanently. |
forkRepository | Yes | Fork a GitHub repository to the authenticated user account or a specified organization. |
createRepository | Yes | Create a new GitHub repository for the authenticated user or a specified organization. |
createOrUpdateFile | Yes | Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. |
editFiles | Yes | Edit files and commit them in one call: replace exact text in a file without reading or resending the whole file, or write whole files, on a new or existing branch, and optionally open a pull request. Replaces createBranch, createOrUpdateFile and createPullRequest chains. |
getBranchRules | List what protects a branch: required status checks, required reviews, and the other ruleset and branch-protection rules. Use it to explain why a pull request cannot merge yet. | |
getCollaboratorPermission | Get a user's permission on a repository (admin, write, read or none) and their role. Use it to check whether a user may trigger the bot or approve an action. On a public repository, every user has at least read. |
Pull requests
| Tool | Write | What it does |
|---|---|---|
listPullRequests | List pull requests for a GitHub repository. | |
getPullRequest | Get detailed information about a specific pull request. Body is truncated by default. Set detail: 'full' for the complete description. | |
createPullRequest | Yes | Create a new pull request in a GitHub repository. |
mergePullRequest | Yes | Merge a pull request. |
updatePullRequest | Yes | Update a pull request: title, body, state, base branch, or draft status. Draft toggling uses the GraphQL API. |
updatePullRequestBranch | Yes | Bring a pull request branch up to date by merging its base branch into it, like the "Update branch" button. Optionally runs only if the head is still at expectedHeadSha. |
addPullRequestComment | Yes | Add a comment to a pull request. |
updatePullRequestComment | Yes | Update the body of a comment on a pull request. |
deletePullRequestComment | Yes | Delete a comment from a pull request permanently. |
listPullRequestFiles | List files changed in a pull request with status and stats. Patches are omitted unless includePatch is true, optionally limited by filenames. | |
listPullRequestReviews | List reviews on a pull request (approvals, change requests, and comments). | |
createPullRequestReview | Yes | Submit a pull request review: approve, request changes, or comment with optional inline comments on a line or a range of lines, including suggested changes the author can apply. |
listPullRequestReviewThreads | List review threads on a pull request with their comments, resolution state, and the IDs to reply (commentId) or resolve (threadId). Unresolved threads only by default (GraphQL API). | |
replyToReviewComment | Yes | Reply to a pull request review comment, adding a message to its review thread. |
resolveReviewThread | Yes | Mark a pull request review thread as resolved. |
requestReviewers | Yes | Request reviews from users or teams on a pull request. |
enablePullRequestAutoMerge | Yes | Merge a pull request automatically once its required checks and reviews pass. The repository must allow auto-merge; a pull request that can already merge needs mergePullRequest. |
disablePullRequestAutoMerge | Yes | Cancel a pending auto-merge, so the pull request stays open when its checks pass. |
Issues
| Tool | Write | What it does |
|---|---|---|
listIssues | List issues for a GitHub repository (excludes pull requests). | |
getIssue | Get detailed information about a specific issue. Body is truncated by default. Set detail: 'full' for the complete description. | |
listIssueComments | List comments on a GitHub issue. Bodies are truncated by default. | |
createIssue | Yes | Create a new issue in a GitHub repository, optionally in a milestone. |
addIssueComment | Yes | Add a comment to a GitHub issue. |
closeIssue | Yes | Close an open GitHub issue. |
updateIssue | Yes | Update a GitHub issue: title, body, labels, milestone, or assignees. Also reopens or closes it through state. |
updateIssueComment | Yes | Update the body of a comment on a GitHub issue. |
deleteIssueComment | Yes | Delete a comment from a GitHub issue permanently. |
listLabels | List labels available in a GitHub repository. | |
addLabels | Yes | Add labels to an issue or pull request. |
removeLabel | Yes | Remove a label from an issue or pull request. |
createLabel | Yes | Create a label in a GitHub repository. |
updateLabel | Yes | Update a label in a GitHub repository: name, color, or description. |
deleteLabel | Yes | Delete a label from a GitHub repository permanently. |
addAssignees | Yes | Assign users to an issue or pull request. |
removeAssignees | Yes | Remove assignees from an issue or pull request. |
listMilestones | List milestones with their due dates and open and closed issue counts. Pass a milestone number to createIssue or updateIssue. | |
listSubIssues | List the sub-issues of an issue. A sub-issue can be in another repository of the same owner. | |
addSubIssue | Yes | Add an existing issue, from the same repository or another one with the same owner, as a sub-issue. An issue has at most one parent; replaceParent moves it. |
Reactions
| Tool | Write | What it does |
|---|---|---|
listIssueReactions | List reactions on an issue or pull request conversation, with per-emoji counts for the returned page. | |
addIssueReaction | Yes | React to an issue or pull request with an emoji. Acknowledges a report without adding a comment. |
listCommentReactions | List reactions on an issue or pull request comment, with per-emoji counts for the returned page. | |
addCommentReaction | Yes | React to an issue or pull request comment with an emoji. Acknowledges a comment without a reply. |
Discussions
| Tool | Write | What it does |
|---|---|---|
listDiscussions | List discussions in a GitHub repository, most recently updated first, optionally filtered by category (GraphQL API). | |
getDiscussion | Get a GitHub discussion by number. Body is truncated by default. Set detail: 'full' for the complete text (GraphQL API). | |
addDiscussionComment | Yes | Add a comment to a GitHub discussion (GraphQL API). |
Notifications
| Tool | Write | What it does |
|---|---|---|
listNotifications | List notification threads for the authenticated user. Unread only unless all is true. Requires a token with notifications access. | |
markNotificationRead | Yes | Mark a single notification thread as read. |
Commits
| Tool | Write | What it does |
|---|---|---|
listCommits | List commits for a GitHub repository. Filters by path, author, since or until. | |
getCommit | Get detailed information about a specific commit, including the list of files changed with additions and deletions. Patches are omitted unless includePatch is true. | |
getBlame | Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). Returns contiguous ranges mapping lines to the commits that last modified them, to see who introduced a line and when (GraphQL API). | |
compareCommits | Compare two branches, tags, or commits: ahead/behind counts, the commits in between, and the files that differ. Patches are omitted unless includePatch is true. |
Gists
| Tool | Write | What it does |
|---|---|---|
listGists | List gists for the authenticated user or a specific user. | |
getGist | Get a gist by ID, including file contents. | |
listGistComments | List comments on a gist. | |
createGist | Yes | Create a new gist with one or more files. |
updateGist | Yes | Update an existing gist: edit description, update files, or remove files. |
deleteGist | Yes | Delete a gist permanently. |
createGistComment | Yes | Add a comment to a gist. |
Workflows
| Tool | Write | What it does |
|---|---|---|
listWorkflows | List GitHub Actions workflows in a repository. | |
listWorkflowRuns | List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. | |
getWorkflowRun | Get details of a specific workflow run including status, timing, and trigger info. | |
listWorkflowJobs | List jobs for a workflow run, including step-level status and timing. | |
getWorkflowJobLogs | Get the log output of a workflow job to diagnose failures. Returns the last maxLines lines (default 200) without per-line timestamps. | |
triggerWorkflow | Yes | Trigger a workflow through a workflow_dispatch event. |
cancelWorkflowRun | Yes | Cancel an in-progress workflow run. |
rerunWorkflowRun | Yes | Re-run a workflow run, optionally only the failed jobs. |
Checks
| Tool | Write | What it does |
|---|---|---|
listCheckRuns | List check runs (Checks API: GitHub Actions and other CI providers) for a commit, branch, or tag. | |
getCombinedStatus | Get the combined commit status (Statuses API: legacy CI integrations) for a commit, branch, or tag. | |
createCommitStatus | Yes | Report a result on a commit as a commit status, such as pending while a bot works and then success or failure. It shows on the commit's pull requests and can be a required check. |
createCommitStatus works with a personal access token or a GitHub App, while GitHub only lets a GitHub App create check runs. It needs the Commit statuses (write) permission, see Auth.
Releases
| Tool | Write | What it does |
|---|---|---|
listReleases | List releases for a GitHub repository, newest first (includes drafts and prereleases). Bodies are truncated by default. | |
getLatestRelease | Get the latest published release for a GitHub repository (excludes drafts and prereleases). Body is truncated by default. | |
getRelease | Get a specific release by ID or tag, including its assets. Body is truncated by default. | |
createRelease | Yes | Create a new release (and its tag if needed) in a GitHub repository. |
updateRelease | Yes | Update an existing release: tag, target, title, notes, draft, or prerelease status. |
deleteRelease | Yes | Delete a release permanently (does not delete the underlying git tag). |
Search
| Tool | Write | What it does |
|---|---|---|
searchCode | Search for code in GitHub repositories. Scope it with qualifiers such as repo:owner/name. Results include matching text snippets when GitHub returns them. | |
searchRepositories | Search for GitHub repositories by keyword, topic, language, or other qualifiers. | |
searchIssues | Search for issues and pull requests across GitHub with search qualifiers such as repo:owner/name is:open. |
Security alerts
| Tool | Write | What it does |
|---|---|---|
listCodeScanningAlerts | List code scanning alerts (CodeQL and other analysis tools) for a repository, newest first, with the rule, its severity, and the file and line of the latest instance. Needs code scanning set up on the repository. | |
listDependabotAlerts | List Dependabot alerts for vulnerable dependencies, newest first, with the package, the advisory (GHSA and CVE IDs, severity, summary), the vulnerable range and the first patched version. | |
listSecretScanningAlerts | List secret scanning alerts for credentials committed to a repository, newest first, with the secret type, whether the secret is still valid, and whether push protection was bypassed. The secret itself is never returned. |
Context tools
| Tool | Write | What it does |
|---|---|---|
getPullRequestContext | Fetch pull request details plus files, reviews, and optional CI checks and linked issues in one call, instead of separate getPullRequest, listPullRequestFiles and listPullRequestReviews calls. | |
getIssueContext | Fetch an issue plus available label names and recent comments in one call, for triage. | |
getReleaseContext | Fetch a release (latest, by ID, or by tag) plus the release before it and the comparison between their tags in one call, for preparing or reviewing a release. | |
getCiFailureContext | Diagnose CI failures in one call, for a ref or one workflow run: failing checks and statuses (for a ref), recent failed runs, failed jobs and steps, and the end of each failed job's log. |