> **Building with AI coding agents?** Install the authstack plugin with one command. This equips your agent with accurate Scalekit implementation patterns.
>
> **Recommended** (the `-y` flags skip prompts, so the command runs without an interactive terminal):
> ```bash
> npx -y @scalekit-inc/cli setup -y
> ```
>
> Global:
> ```bash
> npm install -g @scalekit-inc/cli
> scalekit setup -y
> ```
>
> Supports Claude Code, Cursor, GitHub Copilot, Codex + skills for other Agent Skills-compatible agents in `~/.agents/skills`.
> Skills: integrate-agentkit, implement-saaskit, add-mcp-oauth, implement-sso, implement-scim.
> [Full setup guide](https://docs.scalekit.com/dev-kit/build-with-ai/)

---

# Connect AI agents to GitHub

The GitHub connector lets your AI agent act in each user's GitHub account. Each user signs in to GitHub once, and Scalekit stores and refreshes their tokens, so your agent never handles credentials. It comes with 217 tools.

**Authentication:** OAuth 2.0
**Categories:** Developer Tools, Collaboration
**Tools:** 217: 106 read, 76 write, 35 destructive
**Users sign in with:** OAuth
**OAuth app:** Scalekit's or your own
**Built by:** Scalekit connector
**Try it:** [Playground in the Scalekit dashboard](https://app.scalekit.com/ws/signup?sk_intent=playground&provider=GITHUB)

## What you can do

- **Read repositories**: fetch repo metadata, files, commits, branches, and tags
- **Manage issues**: create, update, close, and comment on issues
- **Work with pull requests**: open PRs, post reviews, and merge changes
- **Search code**: search across repositories by keyword, language, or file path
- **Trigger workflows**: dispatch GitHub Actions workflow runs

## Setup

1. ### Install the SDK

   **Node.js**

   ```bash
   npm install @scalekit-sdk/node dotenv
   ```

   **Python**

   ```bash
   pip install scalekit-sdk-python python-dotenv
   ```

2. ### Set your credentials

   Add your Scalekit credentials to your `.env` file. Find values in **[app.scalekit.com](https://app.scalekit.com)** > **Developers** > **API Credentials**.

   ```sh title=".env"
   SCALEKIT_ENVIRONMENT_URL=<your-environment-url>
   SCALEKIT_CLIENT_ID=<your-client-id>
   SCALEKIT_CLIENT_SECRET=<your-client-secret>
   ```

3. ### Create the GitHub connection

   In **AgentKit > Connections**, create a GitHub connection. The name you give it is the `connection_name` your code passes. See [Configure connections](/agentkit/connections/).

   Scalekit credentials are available for GitHub, so you don't need to register an OAuth app. To show your own app on the consent screen, use your own credentials instead.

   **Use your own OAuth app:**

   Register your Scalekit environment with the GitHub connector so Scalekit handles the authentication flow and token lifecycle for you. The connection name you create will be used to identify and invoke the connection programmatically. Then complete the configuration in your application as follows:

   1. ### Set up auth redirects

       - In [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** > **Connections** > **Create Connection**. Find **GitHub** and click **Create**.

       - Click **Use your own credentials** and copy the redirect URI. It looks like `https://<SCALEKIT_ENVIRONMENT_URL>/sso/v1/oauth/<CONNECTION_ID>/callback`.

         > Image: Copy redirect URI from Scalekit dashboard

       - Go to [GitHub Developer Settings](https://github.com/settings/developers) and open your OAuth app.

       - Under **General**, paste the copied URI into the **Authorization callback URL** field and click **Save application**.

         > Image: Add callback URL in GitHub OAuth app settings

   2. ### Get client credentials

       In [GitHub Developer Settings](https://github.com/settings/developers), open your OAuth app:

       - **Client ID** — listed on the app's main settings page
       - **Client Secret** — click **Generate a new client secret** if you don't have one

   3. ### Add credentials in Scalekit

       - In [Scalekit dashboard](https://app.scalekit.com), go to **AgentKit** > **Connections** and open the connection you created.

       - Enter your credentials:
         - Client ID (from your GitHub OAuth app)
         - Client Secret (from your GitHub OAuth app)

         > Image: Add credentials for GitHub in Scalekit dashboard
       - Click **Save**.

4. ### Authorize a user and make your first call

   **Node.js** (`quickstart.mts`)

   ```typescript
   import { ScalekitClient } from '@scalekit-sdk/node'
   import 'dotenv/config'
   import { createInterface } from 'node:readline/promises'

   const scalekit = new ScalekitClient(
     process.env.SCALEKIT_ENVIRONMENT_URL,
     process.env.SCALEKIT_CLIENT_ID,
     process.env.SCALEKIT_CLIENT_SECRET,
   )
   const actions = scalekit.actions

   const connector = 'github'
   const identifier = 'user_123'

   // Generate an authorization link for the user
   const { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })
   console.log('Authorize GitHub:', link)
   const rl = createInterface({ input: process.stdin, output: process.stdout })
   await rl.question('Press Enter after authorizing...')
   rl.close()

   // Make your first call
   const result = await actions.executeTool({
     connector,
     identifier,
     toolName: 'github_gists_list',
     toolInput: {},
   })
   console.log(result)
   ```

   ```bash
   npx tsx quickstart.mts
   ```

   **Python** (`quickstart.py`)

   ```python
   import os
   from scalekit import ScalekitClient
   from dotenv import load_dotenv
   load_dotenv()

   scalekit_client = ScalekitClient(
       env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),
       client_id=os.getenv("SCALEKIT_CLIENT_ID"),
       client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),
   )
   actions = scalekit_client.actions

   connection_name = "github"
   identifier = "user_123"

   # Generate an authorization link for the user
   link_response = actions.get_authorization_link(
       connection_name=connection_name,
       identifier=identifier,
   )
   print("Authorize GitHub:", link_response.link)
   input("Press Enter after authorizing...")

   # Make your first call
   result = actions.execute_tool(
       tool_input={},
       tool_name="github_gists_list",
       connection_name=connection_name,
       identifier=identifier,
   )
   print(result)
   ```

   ```bash
   python quickstart.py
   ```

   Each user signs in once. See [Authorize a user](/agentkit/tools/authorize/) for the full flow and statuses.

## Tools

Pass the exact name to `execute_tool`, with an input like each tool's example. To ask for a tool that's missing, use the [request form](https://scalekitsupport.portal.usepylon.com/forms/request-a-connector-tool).

**Node.js**

```typescript
const result = await actions.executeTool({
  toolName: 'github_artifact_get',
  toolInput: {
    artifact_id: 1,
    owner: '<owner>',
    repo: '<repo>',
  },
  connector: 'github',
  identifier: 'user_123',
})
```

**Python**

```python
result = actions.execute_tool(
    tool_name="github_artifact_get",
    tool_input={
        "artifact_id": 1,
        "owner": "<owner>",
        "repo": "<repo>",
    },
    connection_name="github",
    identifier="user_123",
)
```

`result.data` is the app's response as JSON, and `result.execution_id` (`executionId` in Node.js) is the ID of the call.

### `github_artifact_get`

Get Artifact · Read-only

Get a single workflow run artifact's metadata by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `artifact_id` (`number`, required): The unique identifier of the artifact
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"artifact_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_artifacts_list`

List Repository Artifacts · Read-only

List artifacts produced by workflow runs in a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `name` (`string`, optional): Filter artifacts by exact match on their name
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_branch_get`

Get Branch · Read-only

Get details of a specific branch in a GitHub repository. Returns the branch name, latest commit SHA, and protection status.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `branch` (`string`, required): The name of the branch to retrieve
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"branch":"<branch>","owner":"<owner>","repo":"<repo>"}`

### `github_branch_protection_get`

Get Branch Protection · Read-only

Get the branch protection settings currently configured for a branch.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `branch` (`string`, required): The name of the branch
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"branch":"<branch>","owner":"<owner>","repo":"<repo>"}`

### `github_branches_list`

List Branches · Read-only

List all branches in a GitHub repository. Returns branch names, commit SHAs, and protection status. Supports pagination.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`integer`, optional): Page number of results to return (default 1)
- `per_page` (`integer`, optional): Number of results per page (max 100, default 30)
- `protected` (`boolean`, optional): Filter to only protected branches

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_check_run_get`

Get Check Run · Read-only

Get a single check run using its id. OAuth app tokens and personal access tokens (classic) need the repo scope for private repositories.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `check_run_id` (`number`, required): The unique identifier of the check run
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"check_run_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_check_runs_list_for_ref`

List Check Runs for a Git Reference · Read-only

List check runs for a commit ref. The ref can be a SHA, branch name, or tag name.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `ref` (`string`, required): The commit reference. Can be a commit SHA, branch name (heads/BRANCH_NAME), or tag name (tags/TAG_NAME)
- `repo` (`string`, required): The name of the repository
- `check_name` (`string`, optional): Returns check runs with the specified name
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `status` (`string`, optional): Returns check runs with the specified status. One of: `queued`, `in_progress`, `completed`.

Example input: `{"owner":"<owner>","ref":"<ref>","repo":"<repo>"}`

### `github_code_scanning_alerts_list`

List Code Scanning Alerts for a Repository · Read-only

List code scanning alerts for a repository. To use this endpoint, you must have read access to the repository, and for private/internal repositories your token needs the security_events scope (public_repo is sufficient for public repositories).

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `after` (`string`, optional): A cursor, as given in the Link response header. Only search for results after this cursor.
- `assignees` (`string`, optional): Comma-separated list of user handles to filter by, or '*' for alerts with at least one assignee, or 'none' for unassigned alerts
- `before` (`string`, optional): A cursor, as given in the Link response header. Only search for results before this cursor.
- `direction` (`string`, optional): The direction to sort the results by. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `pr` (`number`, optional): Only list alerts for this pull request number
- `ref` (`string`, optional): The Git reference for the results, e.g. refs/heads/main or simply main. Use refs/pull/<number>/merge for a pull request.
- `severity` (`string`, optional): Only list alerts with this severity. One of: `critical`, `high`, `medium`, `low`, `warning`, `note`, `error`.
- `sort` (`string`, optional): The property by which to sort the results. One of: `created`, `updated`.
- `state` (`string`, optional): Only list alerts with this state. One of: `open`, `closed`, `dismissed`, `fixed`.
- `tool_guid` (`string`, optional): Only list alerts from the code scanning tool with this GUID. Cannot be used together with tool_name.
- `tool_name` (`string`, optional): Only list alerts from this code scanning tool. Cannot be used together with tool_guid.

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_collaborator_check`

Check Repository Collaborator · Read-only

Check if a user is a collaborator on a repository. Returns a 404 if the user is not a collaborator.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `username` (`string`, required): The handle for the GitHub user account

Example input: `{"owner":"<owner>","repo":"<repo>","username":"<username>"}`

### `github_collaborators_list`

List Collaborators · Read-only

List collaborators for a repository, optionally filtered by affiliation or permission level.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `affiliation` (`string`, optional): Filter collaborators by affiliation: outside, direct, or all. One of: `outside`, `direct`, `all`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `permission` (`string`, optional): Filter collaborators by permission level. One of: `pull`, `triage`, `push`, `maintain`, `admin`.

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_commit_combined_status_get`

Get the Combined Status for a Specific Reference · Read-only

Access a combined view of commit statuses for a given ref (SHA, branch name, or tag name). Returns a combined state of failure, pending, or success.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `ref` (`string`, required): The commit SHA, branch name, or tag name
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","ref":"<ref>","repo":"<repo>"}`

### `github_commit_comment_get`

Get Commit Comment · Read-only

Get a single commit comment by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `comment_id` (`number`, required): The unique identifier of the comment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"comment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_commit_comments_list`

List Commit Comments · Read-only

Lists the comments for a specified commit.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `commit_sha` (`string`, required): The SHA of the commit
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"commit_sha":"<commit_sha>","owner":"<owner>","repo":"<repo>"}`

### `github_commit_get`

Get Commit · Read-only

Get the contents of a single commit reference, including files changed and stats.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `ref` (`string`, required): The commit reference. Can be a commit SHA, branch name, or tag name
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","ref":"<ref>","repo":"<repo>"}`

### `github_commit_pull_requests_list`

List Pull Requests Associated with a Commit · Read-only

List the merged pull request that introduced a commit to a repository, plus unmerged pull requests that reference the commit.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `commit_sha` (`string`, required): The SHA of the commit
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"commit_sha":"<commit_sha>","owner":"<owner>","repo":"<repo>"}`

### `github_commit_statuses_list`

List Commit Statuses for a Reference · Read-only

Lists commit statuses for a given ref (SHA, branch name, or tag name). Statuses are returned in reverse chronological order; the first status is the latest.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `ref` (`string`, required): The commit SHA, branch name, or tag name
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","ref":"<ref>","repo":"<repo>"}`

### `github_commits_compare`

Compare Commits · Read-only

Compare two commits against one another. Equivalent to running 'git log BASE..HEAD', returning commits in chronological order along with details of changed files.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `basehead` (`string`, required): The base branch and head branch to compare, in the format BASE...HEAD. Both must be branch names in repo, or USERNAME:BASE...USERNAME:HEAD to compare across forks
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"basehead":"<basehead>","owner":"<owner>","repo":"<repo>"}`

### `github_commits_list`

List Commits · Read-only

List commits on a repository, optionally filtered by SHA/branch, file path, author, or a date range.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `author` (`string`, optional): GitHub username or email address to use to filter by commit author
- `page` (`number`, optional): Page number of results to fetch
- `path` (`string`, optional): Only commits containing this file path will be returned
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sha` (`string`, optional): SHA or branch to start listing commits from. Default: the repository's default branch (usually main).
- `since` (`string`, optional): Only show results that were last updated after the given time. Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
- `until` (`string`, optional): Only commits before this date will be returned. Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_dependabot_alerts_list`

List Dependabot Alerts for a Repository · Read-only

List Dependabot alerts for a repository. To use this endpoint, you must have read access to the repository, and for private repositories your token needs the security_events scope (public_repo is sufficient for public repositories).

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `after` (`string`, optional): A cursor, as given in the Link response header. Only search for results after this cursor.
- `assignee` (`string`, optional): Filter by assignee username, '*' for any assignee, or 'none' for unassigned
- `before` (`string`, optional): A cursor, as given in the Link response header. Only search for results before this cursor.
- `classification` (`string`, optional): Comma-separated list of vulnerability classifications to filter by
- `direction` (`string`, optional): The direction to sort the results by. One of: `asc`, `desc`.
- `ecosystem` (`string`, optional): Comma-separated list of package ecosystems to filter by
- `epss_percentage` (`string`, optional): Filter by EPSS percentage: an exact number, a comparator expression (>n, <n, >=n, <=n), or a range (n..n), where n is between 0.0 and 1.0
- `has` (`string`, optional): Filter alerts that have the given attribute. Currently only 'patch' is supported (alerts for which a patch is available).
- `manifest` (`string`, optional): Comma-separated list of full manifest file paths to filter by
- `package` (`string`, optional): Comma-separated list of package names to filter by
- `per_page` (`number`, optional): Number of results per page (max 100)
- `relationship` (`string`, optional): Comma-separated list of relationships of the vulnerable dependency to your project (e.g. direct, transitive) to filter by
- `scope` (`string`, optional): The scope of the vulnerable dependency to filter by. One of: `development`, `runtime`.
- `severity` (`string`, optional): Comma-separated list of severities to filter by
- `sort` (`string`, optional): The property by which to sort the results. One of: `created`, `updated`, `epss_percentage`.
- `state` (`string`, optional): Comma-separated list of states to filter by

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_deployment_get`

Get Deployment · Read-only

Get a single deployment by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `deployment_id` (`number`, required): The unique identifier of the deployment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"deployment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_deployments_list`

List Deployments · Read-only

List deployments for a repository, optionally filtered by ref, task, or environment.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `environment` (`string`, optional): The name of the environment that was deployed to (e.g., staging or production)
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)
- `ref` (`string`, optional): The name of the ref, branch, or tag
- `sha` (`string`, optional): The SHA recorded at creation time
- `task` (`string`, optional): The name of the task for the deployment (e.g., deploy or deploy:migrations)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_environments_list`

List Environments · Read-only

List the deployment environments configured for a repository (e.g. staging, production), including their protection rules.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_file_contents_get`

Get File Contents · Read-only

Get the contents of a file or directory from a GitHub repository. Returns Base64 encoded content for files.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `path` (`string`, required): The content path (file or directory path in the repository)
- `repo` (`string`, required): The name of the repository
- `ref` (`string`, optional): The name of the commit/branch/tag

Example input: `{"owner":"<owner>","path":"<path>","repo":"<repo>"}`

### `github_gist_comments_list`

List Gist Comments · Read-only

List comments left on a gist.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `gist_id` (`string`, required): The unique identifier of the gist
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"gist_id":"<gist_id>"}`

### `github_gist_get`

Get Gist · Read-only

Get a specified gist by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `gist_id` (`string`, required): The unique identifier of the gist

Example input: `{"gist_id":"<gist_id>"}`

### `github_gists_list`

List Gists · Read-only

List the authenticated user's gists, sorted by most recently updated to least recently updated.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `since` (`string`, optional): Only show results updated after the given time (ISO 8601 format)

Example input: `{}`

### `github_git_ref_get`

Get a Reference · Read-only

Returns a single reference from the Git database. The ref must be formatted as heads/<branch name> for branches and tags/<tag name> for tags.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `ref` (`string`, required): The reference name, formatted as heads/<branch name> or tags/<tag name>
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","ref":"<ref>","repo":"<repo>"}`

### `github_git_tag_get`

Get a Tag · Read-only

Get a single Git tag object from the repository's low-level Git database by its SHA. Note this returns the annotated tag object, not the tag ref itself.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `tag_sha` (`string`, required): The SHA of the tag object to retrieve

Example input: `{"owner":"<owner>","repo":"<repo>","tag_sha":"<tag_sha>"}`

### `github_git_tree_get`

Get a Tree · Read-only

Get a Git tree by its SHA or ref. Optionally return the full recursive tree including all subtrees.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `tree_sha` (`string`, required): The SHA1 value or ref (branch or tag) name of the tree
- `recursive` (`boolean`, optional): Whether to recursively return objects or subtrees referenced by the tree

Example input: `{"owner":"<owner>","repo":"<repo>","tree_sha":"<tree_sha>"}`

### `github_gitignore_template_get`

Get Gitignore Template · Read-only

Get the content of a gitignore template by name.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `name` (`string`, required): The name of the gitignore template

Example input: `{"name":"<name>"}`

### `github_gitignore_templates_list`

List Gitignore Templates · Read-only

List all gitignore templates available to pass as an option when creating a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `github_issue_comment_get`

Get Issue Comment · Read-only

Get a single issue comment by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `comment_id` (`number`, required): The unique identifier of the comment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"comment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_comments_list`

List Issue Comments · Read-only

List comments on an issue or pull request, ordered by ascending ID. Every pull request is an issue, but not every issue is a pull request.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `since` (`string`, optional): Only show comments updated after this timestamp (ISO 8601 format)

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_events_list`

List Issue Events · Read-only

List events for an issue, such as labeling, assignment, and milestone changes.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_get`

Get Issue · Read-only

Get a single issue in a repository by its number. Both issues and pull requests are returned as issues in the GitHub API.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_reaction_list`

List Issue Reactions · Read-only

List the reactions (emoji) left on an issue. Optionally filter to a single reaction type.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `content` (`string`, optional): Filter results to only include reactions of this type. One of: `+1`, `-1`, `laugh`, `confused`, `heart`, `hooray`, `rocket`, `eyes`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_timeline_list`

List Issue Timeline Events · Read-only

List timeline events for an issue, including comments, cross-references, and state changes, in chronological order.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issues_list`

List Repository Issues · Read-only

List issues in a repository. Both issues and pull requests are returned as issues in the GitHub API.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `assignee` (`string`, optional): Filter by assigned user
- `creator` (`string`, optional): Filter by issue creator
- `direction` (`string`, optional): Sort order. One of: `asc`, `desc`.
- `labels` (`string`, optional): Filter by comma-separated list of label names
- `milestone` (`string`, optional): Filter by milestone number or state
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `since` (`string`, optional): Show issues updated after this timestamp (ISO 8601 format)
- `sort` (`string`, optional): Property to sort issues by. One of: `created`, `updated`, `comments`.
- `state` (`string`, optional): Filter by issue state. One of: `open`, `closed`, `all`.

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_label_get`

Get Label · Read-only

Get a single label by name.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `label_name` (`string`, required): The name of the label
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"label_name":"<label_name>","owner":"<owner>","repo":"<repo>"}`

### `github_labels_list`

List Labels · Read-only

List all labels for a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_license_get`

Get License · Read-only

Get information about a specific open source license by its SPDX keyword (e.g. 'mit').

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `license` (`string`, required): The license keyword (SPDX id)

Example input: `{"license":"<license>"}`

### `github_milestone_get`

Get Milestone · Read-only

Get a single milestone by its number.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `milestone_number` (`number`, required): The number that identifies the milestone
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"milestone_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_milestones_list`

List Milestones · Read-only

List milestones for a repository, with optional filtering by state and sorting.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `direction` (`string`, optional): The direction of the sort. Either asc or desc. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): What to sort results by. Either due_on or completeness. One of: `due_on`, `completeness`.
- `state` (`string`, optional): The state of the milestone. Either open, closed, or all. One of: `open`, `closed`, `all`.

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_notifications_list`

List Notifications for the Authenticated User · Read-only

List notifications for the authenticated user across all repositories they have access to. By default only unread notifications are returned.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `all` (`boolean`, optional): If true, show notifications marked as read
- `before` (`string`, optional): Only show notifications updated before this time, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
- `page` (`number`, optional): Page number of results to fetch
- `participating` (`boolean`, optional): If true, only show notifications in which the user is directly participating or mentioned
- `per_page` (`number`, optional): Number of results per page (max 50)
- `since` (`string`, optional): Only show results updated after this time, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ

Example input: `{}`

### `github_org_get`

Get Organization · Read-only

Get information about an organization, including its profile details, billing settings visibility, and security settings.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)

Example input: `{"org":"<org>"}`

### `github_org_issue_types_list`

List Issue Types for an Organization · Read-only

List the issue types (e.g. Bug, Feature, Task) configured for an organization. Issue types can be assigned to issues to categorize them.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)

Example input: `{"org":"<org>"}`

### `github_org_issues_list`

List Organization Issues · Read-only

List issues in an organization assigned to the authenticated user, across all visible repositories.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `direction` (`string`, optional): The direction to sort the results by. One of: `asc`, `desc`.
- `filter` (`string`, optional): Indicates which sorts of issues to return. One of: `assigned`, `created`, `mentioned`, `subscribed`, `repos`, `all`.
- `labels` (`string`, optional): A list of comma separated label names
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)
- `since` (`string`, optional): Only show results updated after this time (ISO 8601 format)
- `sort` (`string`, optional): What to sort results by. One of: `created`, `updated`, `comments`.
- `state` (`string`, optional): Indicates the state of the issues to return. One of: `open`, `closed`, `all`.

Example input: `{"org":"<org>"}`

### `github_org_members_list`

List Organization Members · Read-only

List all users who are members of an organization. If the authenticated user is also a member, both concealed and public members are returned.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `filter` (`string`, optional): Filter members returned in the list. 2fa_disabled means only members without two-factor authentication enabled will be returned (organization owners only). One of: `2fa_disabled`, `2fa_insecure`, `all`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `role` (`string`, optional): Filter members returned by their role. One of: `all`, `admin`, `member`.

Example input: `{"org":"<org>"}`

### `github_org_membership_get`

Get Organization Membership for a User · Read-only

Get a user's membership with an organization. The authenticated user must be an organization member. The response's 'state' field identifies the user's membership status.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `username` (`string`, required): The handle for the GitHub user account

Example input: `{"org":"<org>","username":"<username>"}`

### `github_public_repos_list`

List Public Repositories · Read-only

List public repositories for a specified user. Does not require authentication.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `username` (`string`, required): The GitHub username to list repositories for
- `direction` (`string`, optional): Sort order. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): Property to sort repositories by. One of: `created`, `updated`, `pushed`, `full_name`.
- `type` (`string`, optional): Filter repositories by type. One of: `all`, `public`, `private`, `forks`, `sources`, `member`.

Example input: `{"username":"<username>"}`

### `github_pull_request_commits_list`

List Pull Request Commits · Read-only

List the commits on a pull request. Results may not include all commits on very large pull requests.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_files_list`

List Pull Request Files · Read-only

List the files changed in a specified pull request. Responses include a maximum of 3000 files, paginated at 30 files per page by default.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_get`

Get Pull Request · Read-only

Get details of a pull request by its number, including mergeable status, commits, and metadata.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_merge_check`

Check If Pull Request Is Merged · Read-only

Checks if a pull request has been merged into the base branch. GitHub signals this via HTTP status only: 204 means merged, 404 means the pull request has not been merged (this is a normal, non-error outcome, not a failure).

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_requested_reviewers_list`

List Requested Reviewers for a Pull Request · Read-only

Get the users and teams whose review has been requested but not yet given for a pull request.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_review_comment_get`

Get Pull Request Review Comment · Read-only

Get a single review comment on a pull request by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `comment_id` (`number`, required): The unique identifier of the comment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"comment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_pull_request_review_comments_list`

List Pull Request Review Comments · Read-only

List review comments left on a pull request's diff.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `direction` (`string`, optional): The direction to sort results by. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)
- `since` (`string`, optional): Only show results updated after this time (ISO 8601 format)
- `sort` (`string`, optional): The property to sort results by. One of: `created`, `updated`.

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_review_get`

Get Pull Request Review · Read-only

Get a single review left on a pull request by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `review_id` (`number`, required): The unique identifier of the review

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>","review_id":1}`

### `github_pull_request_reviews_list`

List Pull Request Reviews · Read-only

List all reviews for a specified pull request, returned in chronological order.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_requests_list`

List Pull Requests · Read-only

List pull requests in a repository with optional filtering by state, head, and base branches.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `base` (`string`, optional): Filter by base branch name
- `direction` (`string`, optional): Sort order. One of: `asc`, `desc`.
- `head` (`string`, optional): Filter by head branch (format: user:ref-name)
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): Property to sort pull requests by. One of: `created`, `updated`, `popularity`, `long-running`.
- `state` (`string`, optional): Filter by pull request state. One of: `open`, `closed`, `all`.

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_readme_get`

Get Repository README · Read-only

Get the preferred README for a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `ref` (`string`, optional): The name of the commit/branch/tag. Default: the repository's default branch

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_release_asset_get`

Get Release Asset · Read-only

Get a single release asset's metadata by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `asset_id` (`number`, required): The unique identifier of the release asset
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"asset_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_release_assets_list`

List Release Assets · Read-only

List the assets (binary files) attached to a release in a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `release_id` (`number`, required): The unique identifier of the release
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","release_id":1,"repo":"<repo>"}`

### `github_release_get`

Get Release · Read-only

Get a public release with the specified release ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `release_id` (`number`, required): The unique identifier of the release
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","release_id":1,"repo":"<repo>"}`

### `github_release_get_by_tag`

Get Release by Tag Name · Read-only

Get a published release with the specified tag.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `tag` (`string`, required): The name of the tag

Example input: `{"owner":"<owner>","repo":"<repo>","tag":"<tag>"}`

### `github_release_get_latest`

Get Latest Release · Read-only

View the latest published full release for the repository. The latest release is the most recent non-prerelease, non-draft release, sorted by created_at.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_releases_list`

List Releases · Read-only

List releases for a repository. Does not include Git tags that have not been associated with a release.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_contributors_list`

List Repository Contributors · Read-only

List contributors to a repository, sorted by number of commits, and including anonymous contributors when requested.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `anon` (`string`, optional): Set to '1' or 'true' to include anonymous contributors in the results
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_forks_list`

List Forks · Read-only

List forks of a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)
- `sort` (`string`, optional): The sort order for the results. One of: `newest`, `oldest`, `stargazers`, `watchers`.

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_get`

Get Repository Information · Read-only

Get detailed information about a GitHub repository including metadata, settings, and statistics.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository (case-insensitive)
- `repo` (`string`, required): The name of the repository without the .git extension (case-insensitive)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_invitations_list`

List Repository Invitations · Read-only

List all currently open repository invitations.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_languages_list`

List Repository Languages · Read-only

List the programming languages used in a repository, with the number of bytes of code written in each language.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_license_get`

Get Repository License · Read-only

Get the contents of the repository's license file, if one is detected.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `ref` (`string`, optional): The name of the commit/branch/tag. Default: the repository's default branch

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_org_repos_list`

List Organization Repositories · Read-only

List repositories for the specified organization.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name
- `direction` (`string`, optional): The order to sort by. Default: asc when using full_name, otherwise desc. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): The property to sort the results by. One of: `created`, `updated`, `pushed`, `full_name`.
- `type` (`string`, optional): Specifies the types of repositories you want returned. One of: `all`, `public`, `private`, `forks`, `sources`, `member`.

Example input: `{"org":"<org>"}`

### `github_repo_secret_get`

Get Repository Actions Secret · Read-only

Get metadata about a single Actions secret on a repository. The value is never returned by the GitHub API.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `secret_name` (`string`, required): The name of the secret

Example input: `{"owner":"<owner>","repo":"<repo>","secret_name":"<secret_name>"}`

### `github_repo_secrets_list`

List Repository Actions Secrets · Read-only

List the names of Actions secrets configured on a repository. Secret values are never returned by the GitHub API.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_topics_get`

Get All Repository Topics · Read-only

Get all topics associated with a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_variable_get`

Get Repository Actions Variable · Read-only

Get a single Actions variable's name and value from a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `variable_name` (`string`, required): The name of the variable

Example input: `{"owner":"<owner>","repo":"<repo>","variable_name":"<variable_name>"}`

### `github_repo_variables_list`

List Repository Actions Variables · Read-only

List the Actions variables configured on a repository, including their values.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_search_code`

Search Code · Read-only

Search for code across GitHub using search qualifiers (e.g. 'addClass in:file language:js repo:jquery/jquery'). Returns up to 100 results per page. Requires authentication and is limited to 10 requests per minute.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `q` (`string`, required): Search query with optional qualifiers (e.g. 'addClass in:file language:js repo:jquery/jquery')
- `order` (`string`, optional): Sort order. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): Sort results by indexed (how recently the file was indexed). One of: `indexed`.

Example input: `{"q":"addClass in:file language:js repo:jquery/jquery"}`

### `github_search_commits`

Search Commits · Read-only

Search for commits across all of GitHub, or scoped with search qualifiers.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `q` (`string`, required): The search query, using GitHub search syntax
- `order` (`string`, optional): Determines whether the first search result returned is the highest or lowest number of matches. One of: `desc`, `asc`.
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)
- `sort` (`string`, optional): Sorts the results by author-date or committer-date. Default: best match. One of: `author-date`, `committer-date`.

Example input: `{"q":"addClass in:file language:js repo:jquery/jquery"}`

### `github_search_issues`

Search Issues and Pull Requests · Read-only

Search for issues and pull requests across GitHub by state and keyword (e.g. 'windows label:bug language:python state:open'). Returns up to 100 results per page, sortable by comments, reactions, interactions, created, or updated.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `q` (`string`, required): Search query with optional qualifiers (e.g. 'windows label:bug language:python state:open')
- `order` (`string`, optional): Sort order. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): Sort results by comments, reactions, reactions-+1, reactions--1, reactions-smile, reactions-thinking_face, reactions-heart, reactions-tada, interactions, created, or updated. One of: `comments`, `reactions`, `reactions-+1`, `reactions--1`, `reactions-smile`, `reactions-thinking_face`, `reactions-heart`, `reactions-tada`, `interactions`, `created`, `updated`.

Example input: `{"q":"windows label:bug language:python state:open"}`

### `github_search_repos`

Search Repositories · Read-only

Search for repositories via GitHub's search qualifiers (e.g. 'tetris language:assembly'). Returns up to 100 results per page, sortable by stars, forks, help-wanted-issues, or updated.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `q` (`string`, required): Search query with optional qualifiers (e.g. 'tetris language:assembly')
- `order` (`string`, optional): Sort order. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): Sort results by stars, forks, help-wanted-issues, or updated. One of: `stars`, `forks`, `help-wanted-issues`, `updated`.

Example input: `{"q":"tetris language:assembly"}`

### `github_search_topics`

Search Topics · Read-only

Search for topics defined on GitHub.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `q` (`string`, required): The search query, using GitHub search syntax
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"q":"addClass in:file language:js repo:jquery/jquery"}`

### `github_search_users`

Search Users · Read-only

Search for users across GitHub via search qualifiers (e.g. 'tom repos:>42 followers:>1000'). Returns up to 100 results per page, sortable by followers, repositories, or joined date.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `q` (`string`, required): Search query with optional qualifiers (e.g. 'tom repos:>42 followers:>1000')
- `order` (`string`, optional): Sort order. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): Sort results by followers, repositories, or joined date. One of: `followers`, `repositories`, `joined`.

Example input: `{"q":"tom repos:>42 followers:>1000"}`

### `github_secret_scanning_alerts_list`

List Secret Scanning Alerts for a Repository · Read-only

List secret scanning alerts for a repository. To use this endpoint, you must have read access to the repository, and your token needs the repo scope (or security_events for public repositories).

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `after` (`string`, optional): A cursor, as given in the Link response header. Only search for results after this cursor.
- `assignee` (`string`, optional): Filter by assignee username, '*' for any assignee, or 'none' for unassigned
- `before` (`string`, optional): A cursor, as given in the Link response header. Only search for results before this cursor.
- `direction` (`string`, optional): The direction to sort the results by. One of: `asc`, `desc`.
- `exclude_providers` (`string`, optional): Comma-separated list of provider slugs to exclude. Cannot be combined with providers.
- `exclude_secret_types` (`string`, optional): Comma-separated list of secret types to exclude. Cannot be combined with secret_type.
- `is_multi_repo` (`boolean`, optional): Filter alerts by whether the multi-repo tag is present
- `is_publicly_leaked` (`boolean`, optional): Filter alerts by whether the publicly-leaked tag is present
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `providers` (`string`, optional): Comma-separated list of provider slugs to filter by. Cannot be combined with exclude_providers.
- `resolution` (`string`, optional): Comma-separated list of resolutions to filter by
- `secret_type` (`string`, optional): Comma-separated list of secret types to return. All default secret patterns are returned when omitted.
- `sort` (`string`, optional): The property by which to sort the results. One of: `created`, `updated`.
- `state` (`string`, optional): Set to filter alerts by state. One of: `open`, `resolved`.
- `validity` (`string`, optional): Comma-separated list of validities to filter by

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_stargazers_list`

List Stargazers · Read-only

Lists the people that have starred the repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_starred_repos_list`

List Starred Repositories · Read-only

List repositories the authenticated user has starred.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `direction` (`string`, optional): Direction to sort results. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): The property to sort the results by. 'created' means when the repository was starred. 'updated' means when the repository was last pushed to. One of: `created`, `updated`.

Example input: `{}`

### `github_sub_issues_list`

List Sub-Issues · Read-only

List the sub-issues that have been added underneath a parent issue.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the parent issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_tags_list`

List Tags · Read-only

List repository tags.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_team_get`

Get Team by Name · Read-only

Get a team using the team's slug. To create the slug, GitHub replaces special characters in the name, lowercases all words, and replaces spaces with a '-' separator.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `team_slug` (`string`, required): The slug of the team name

Example input: `{"org":"<org>","team_slug":"<team_slug>"}`

### `github_team_members_list`

List Team Members · Read-only

List a team's members, including members of child teams. Each member includes their role on the team (member or maintainer) and whether the membership is inherited. The team must be visible to the authenticated user.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `team_slug` (`string`, required): The slug of the team name
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `role` (`string`, optional): Filters members returned by their role in the team. One of: `member`, `maintainer`, `all`.

Example input: `{"org":"<org>","team_slug":"<team_slug>"}`

### `github_team_membership_get`

Get Team Membership for a User · Read-only

Get a user's membership state and role (member or maintainer) on a team.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `team_slug` (`string`, required): The slug of the team name
- `username` (`string`, required): The handle for the GitHub user account

Example input: `{"org":"<org>","team_slug":"<team_slug>","username":"<username>"}`

### `github_team_repos_list`

List Team Repositories · Read-only

List a team's repositories visible to the authenticated user.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `team_slug` (`string`, required): The slug of the team name
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"org":"<org>","team_slug":"<team_slug>"}`

### `github_teams_list`

List Teams · Read-only

List all teams in an organization that are visible to the authenticated user.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"org":"<org>"}`

### `github_user_get_authenticated`

Get the Authenticated User · Read-only

Get the profile information for the currently authenticated user. OAuth app tokens and personal access tokens (classic) need the 'user' scope to include private profile information.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs: none.

Example input: `{}`

### `github_user_get_by_username`

Get a User · Read-only

Get publicly available profile information about a user with a GitHub account.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `username` (`string`, required): The handle for the GitHub user account

Example input: `{"username":"<username>"}`

### `github_user_issues_list`

List User Issues · Read-only

List issues assigned to the authenticated user across all visible repositories, including owned, member, and organization repositories. Use the filter parameter to fetch issues not necessarily assigned to you.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `direction` (`string`, optional): Sort order. One of: `asc`, `desc`.
- `filter` (`string`, optional): Indicates which sorts of issues to return. 'assigned' means issues assigned to you, 'created' means issues created by you, 'mentioned' means issues mentioning you, 'subscribed' means issues you're subscribed to updates for, 'all' or 'repos' means all issues you can see. One of: `assigned`, `created`, `mentioned`, `subscribed`, `repos`, `all`.
- `labels` (`string`, optional): Filter by comma-separated list of label names
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `since` (`string`, optional): Show issues updated after this timestamp (ISO 8601 format)
- `sort` (`string`, optional): Property to sort issues by. One of: `created`, `updated`, `comments`.
- `state` (`string`, optional): Indicates the state of the issues to return. One of: `open`, `closed`, `all`.

Example input: `{}`

### `github_user_repos_list`

List User Repositories · Read-only

List repositories for the authenticated user. Requires authentication.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `direction` (`string`, optional): Sort order. One of: `asc`, `desc`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `sort` (`string`, optional): Property to sort repositories by. One of: `created`, `updated`, `pushed`, `full_name`.
- `type` (`string`, optional): Filter repositories by type. One of: `all`, `public`, `private`, `forks`, `sources`, `member`.

Example input: `{}`

### `github_webhook_get`

Get Repository Webhook · Read-only

Get a single repository webhook by its ID.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `hook_id` (`number`, required): The unique identifier of the webhook
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"hook_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_webhooks_list`

List Repository Webhooks · Read-only

List webhooks configured on a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of the results to fetch
- `per_page` (`number`, optional): The number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_workflow_get`

Get Workflow · Read-only

Get a single workflow by its ID or filename.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `workflow_id` (`string`, required): The ID of the workflow, or the workflow file name

Example input: `{"owner":"<owner>","repo":"<repo>","workflow_id":"<workflow_id>"}`

### `github_workflow_run_get`

Get a Workflow Run · Read-only

Get a specific workflow run for a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `run_id` (`number`, required): The unique identifier of the workflow run

Example input: `{"owner":"<owner>","repo":"<repo>","run_id":1}`

### `github_workflow_run_jobs_list`

List Jobs for a Workflow Run · Read-only

List all jobs for a workflow run, including jobs from old executions of the run if requested.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `run_id` (`number`, required): The unique identifier of the workflow run
- `filter` (`string`, optional): Filters jobs by their completed_at timestamp. latest returns jobs from the most recent execution; all returns every job including old executions. One of: `latest`, `all`.
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>","run_id":1}`

### `github_workflow_runs_list`

List Workflow Runs for a Repository · Read-only

List all workflow runs for a repository. You can filter by actor, branch, event, and status.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `actor` (`string`, optional): Returns someone's workflow runs. Use the login for the user who created the push
- `branch` (`string`, optional): Returns workflow runs associated with a branch. Use the name of the branch of the push
- `event` (`string`, optional): Returns workflow runs triggered by the event you specify, e.g. push, pull_request, or issue
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)
- `status` (`string`, optional): Returns workflow runs with the check run status or conclusion that you specify. One of: `completed`, `action_required`, `cancelled`, `failure`, `neutral`, `skipped`, `stale`, `success`, `timed_out`, `in_progress`, `queued`, `requested`, `waiting`, `pending`.

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_workflows_list`

List Repository Workflows · Read-only

List the workflows defined in a repository.

Read only: yes. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `page` (`number`, optional): Page number of results to fetch
- `per_page` (`number`, optional): Number of results per page (max 100)

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_branch_create`

Create Branch · Write

Create a new branch in a GitHub repository. Requires the SHA of the commit to branch from (typically the HEAD of main).

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `branch_name` (`string`, required): Name of the new branch to create
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `sha` (`string`, required): The SHA of the commit to branch from. Use the HEAD SHA of the base branch (e.g. main).

Example input: `{"branch_name":"<branch_name>","owner":"<owner>","repo":"<repo>","sha":"<sha>"}`

### `github_branch_merge`

Merge a Branch · Write

Merge a branch (or commit) into another branch, creating a merge commit. Returns 204 when the base branch is already up to date and no merge was necessary.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `base` (`string`, required): The name of the base branch that the head will be merged into
- `head` (`string`, required): The head to merge. This can be a branch name or a commit SHA1
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `commit_message` (`string`, optional): Commit message to use for the merge commit. If omitted, a default message is used

Example input: `{"base":"<base>","head":"<head>","owner":"<owner>","repo":"<repo>"}`

### `github_branch_merge_upstream`

Sync Fork Branch with Upstream · Write

Sync a branch of a forked repository to keep it up-to-date with the upstream repository.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `branch` (`string`, required): The name of the branch which should be updated to match upstream
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"branch":"<branch>","owner":"<owner>","repo":"<repo>"}`

### `github_branch_protection_update`

Update Branch Protection · Write

Protect a branch, or update an existing branch's protection settings. Protecting a branch requires admin or owner permissions.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `branch` (`string`, required): The name of the branch
- `enforce_admins` (`boolean`, required): Enforce all configured restrictions for administrators. Set to null to disable
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `required_pull_request_reviews` (`object`, required): Require at least one approving review before merging. Set to null to disable. Pass the object as null to disable that protection. Provide the object as an opaque JSON value; see GitHub's branch protection documentation for the full nested schema.
- `required_status_checks` (`object`, required): Require status checks to pass before merging. Set to null to disable. Pass the object as null to disable that protection. Provide the object as an opaque JSON value; see GitHub's branch protection documentation for the full nested schema.
- `restrictions` (`object`, required): Restrict who can push to the protected branch. Set to null to disable. Pass the object as null to disable that protection. Provide the object as an opaque JSON value; see GitHub's branch protection documentation for the full nested schema.
- `allow_deletions` (`boolean`, optional): Allow users with push access to delete the branch
- `allow_force_pushes` (`boolean`, optional): Permit force pushes for all users with push access
- `allow_fork_syncing` (`boolean`, optional): Whether users can pull changes from upstream when the branch is locked
- `block_creations` (`boolean`, optional): Restrict pushes that create matching branches
- `lock_branch` (`boolean`, optional): Whether to set the branch as read-only, preventing any pushes to it
- `required_conversation_resolution` (`boolean`, optional): Require all conversations on code to be resolved before a pull request can be merged
- `required_linear_history` (`boolean`, optional): Enforce a linear commit history and prevent merge commits from being pushed

Example input: `{"branch":"<branch>","enforce_admins":true,"owner":"<owner>","repo":"<repo>","required_pull_request_reviews":{},"required_status_checks":{},"restrictions":{}}`

### `github_branch_rename`

Rename Branch · Write

Rename a branch in a repository. Tags and releases are not updated by this operation.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `branch` (`string`, required): The name of the branch
- `new_name` (`string`, required): The new name of the branch
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"branch":"<branch>","new_name":"<new_name>","owner":"<owner>","repo":"<repo>"}`

### `github_check_run_create`

Create Check Run · Write

Create a new check run for a specific commit in a repository. Creating a check run requires a GitHub App; OAuth apps and authenticated users are not able to create a check suite.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `head_sha` (`string`, required): The SHA of the commit
- `name` (`string`, required): The name of the check. For example, 'code-coverage'.
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `conclusion` (`string`, optional): The final conclusion of the check. Required if you provide completed_at or a status of completed. One of: `action_required`, `cancelled`, `failure`, `neutral`, `success`, `skipped`, `stale`, `timed_out`.
- `output` (`object`, optional): Check runs can accept a variety of data in the output object, including a title and summary, and can optionally provide descriptive details about the run.
- `started_at` (`string`, optional): The time that the check run began. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
- `status` (`string`, optional): The current status of the check run. Only GitHub Actions can set a status of waiting, pending, or requested. One of: `queued`, `in_progress`, `completed`, `waiting`, `requested`, `pending`.

Example input: `{"head_sha":"<head_sha>","name":"<name>","owner":"<owner>","repo":"<repo>"}`

### `github_collaborator_add`

Add Collaborator · Write

Add a user as a collaborator to a repository with a specified permission level. On organization-owned repositories this may create an invitation.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `username` (`string`, required): The username of the collaborator to add
- `permission` (`string`, optional): The permission to grant the collaborator (only valid on organization-owned repositories). One of: `pull`, `triage`, `push`, `maintain`, `admin`.

Example input: `{"owner":"<owner>","repo":"<repo>","username":"<username>"}`

### `github_commit_comment_create`

Create Commit Comment · Write

Create a comment for a commit using its SHA. Triggers notifications.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `body` (`string`, required): The contents of the comment
- `commit_sha` (`string`, required): The SHA of the commit to comment on
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `line` (`number`, optional): Line number in the file to comment on (deprecated, use position instead)
- `path` (`string`, optional): Relative path of the file to comment on
- `position` (`number`, optional): Line index in the diff to comment on

Example input: `{"body":"<body>","commit_sha":"<commit_sha>","owner":"<owner>","repo":"<repo>"}`

### `github_commit_comment_update`

Update Commit Comment · Write

Update the text of an existing commit comment.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `body` (`string`, required): The contents of the comment
- `comment_id` (`number`, required): The unique identifier of the comment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"body":"<body>","comment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_commit_status_create`

Create a Commit Status · Write

Create a commit status for a given SHA. Requires push access to the repository. Limited to 1000 statuses per sha and context.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `sha` (`string`, required): The commit SHA to create a status for
- `state` (`string`, required): The state of the status. One of: `error`, `failure`, `pending`, `success`.
- `context` (`string`, optional): A string label to differentiate this status from the status of other systems
- `description` (`string`, optional): A short description of the status
- `target_url` (`string`, optional): The target URL to associate with this status, linked from the GitHub UI

Example input: `{"owner":"<owner>","repo":"<repo>","sha":"<sha>","state":"error"}`

### `github_deployment_create`

Create Deployment · Write

Create a deployment for a ref (branch, tag, or SHA). Deployments offer a way to track the status of code as it is deployed to different environments.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `ref` (`string`, required): The ref to deploy. This can be a branch, tag, or SHA
- `repo` (`string`, required): The name of the repository
- `auto_merge` (`boolean`, optional): Attempts to automatically merge the default branch into the requested ref, if it is behind the default branch
- `description` (`string`, optional): Short description of the deployment
- `environment` (`string`, optional): Name for the target deployment environment (e.g., production, staging, qa)
- `payload` (`object`, optional): JSON payload with extra information about the deployment
- `production_environment` (`boolean`, optional): Specifies if the given environment is one that end-users directly interact with
- `required_contexts` (`array`, optional): Status contexts to verify against commit status checks. Pass an empty array to bypass checking entirely. Defaults to all unique contexts
- `task` (`string`, optional): Specifies a task to execute (e.g., deploy or deploy:migrations)
- `transient_environment` (`boolean`, optional): Specifies if the given environment is specific to this deployment and will no longer exist at some point in the future

Example input: `{"owner":"<owner>","ref":"<ref>","repo":"<repo>"}`

### `github_deployment_status_create`

Create Deployment Status · Write

Create a new status for a deployment, used to track the deployment's progress through states like in_progress, success, or failure.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `deployment_id` (`number`, required): The unique identifier of the deployment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `state` (`string`, required): The state of the status. One of: `error`, `failure`, `inactive`, `in_progress`, `queued`, `pending`, `success`.
- `auto_inactive` (`boolean`, optional): Adds an inactive status to all prior non-transient, non-production deployments with the same repository and environment name
- `description` (`string`, optional): A short description of the status. Maximum 140 characters
- `environment` (`string`, optional): Name for the target deployment environment, which can be changed when setting a deploy status
- `environment_url` (`string`, optional): Sets the URL for accessing your environment
- `log_url` (`string`, optional): The full URL of the deployment's output, shown while the task runs or as historical information afterward

Example input: `{"deployment_id":1,"owner":"<owner>","repo":"<repo>","state":"error"}`

### `github_environment_create_update`

Create or Update Environment · Write

Create a new deployment environment on a repository, or update an existing one's protection rules (wait timer, required reviewers, deployment branch policy). Environment creation requires admin access to the repository.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `environment_name` (`string`, required): The name of the environment to create or update
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `deployment_branch_policy` (`object`, optional): Restricts which branches/tags can deploy to this environment. Set to null to allow all branches to deploy. Shape: {"protected_branches": bool, "custom_branch_policies": bool} — exactly one of the two booleans may be true.
- `prevent_self_review` (`boolean`, optional): Whether or not a user who created the job is prevented from approving their own job
- `reviewers` (`array`, optional): Up to 6 users or teams that must approve deployments to this environment. Each item is an object like {"type": "User", "id": 123} or {"type": "Team", "id": 456}, where id is the numeric user or team id.
- `wait_timer` (`number`, optional): The amount of time (in minutes, 0-43200) to delay a job after the job is initially triggered

Example input: `{"environment_name":"<environment_name>","owner":"<owner>","repo":"<repo>"}`

### `github_gist_comment_create`

Create Gist Comment · Write

Create a comment on a gist.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `body` (`string`, required): The comment text
- `gist_id` (`string`, required): The unique identifier of the gist

Example input: `{"body":"<body>","gist_id":"<gist_id>"}`

### `github_gist_comment_update`

Update Gist Comment · Write

Update the text of an existing gist comment.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `body` (`string`, required): The comment text
- `comment_id` (`number`, required): The unique identifier of the comment
- `gist_id` (`string`, required): The unique identifier of the gist

Example input: `{"body":"<body>","comment_id":1,"gist_id":"<gist_id>"}`

### `github_gist_create`

Create Gist · Write

Create a new gist with one or more files. Files are provided as a map of filename to an object containing the file's content.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `files` (`object`, required): Names and content for the files that make up the gist. Each key is a filename, mapped to an object with a 'content' field.
- `description` (`string`, optional): Description of the gist
- `public` (`boolean`, optional): Flag indicating whether the gist is public

Example input: `{"files":{}}`

### `github_gist_star`

Star Gist · Write

Star a gist for the authenticated user.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `gist_id` (`string`, required): The unique identifier of the gist

Example input: `{"gist_id":"<gist_id>"}`

### `github_gist_update`

Update Gist · Write

Update a gist's description and/or update, rename, or delete its files. Files from the previous version that aren't explicitly changed remain unchanged. At least one of description or files is required.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `gist_id` (`string`, required): The unique identifier of the gist to update
- `description` (`string`, optional): The description of the gist
- `files` (`object`, optional): The gist files to be updated, renamed, or deleted. Each key must match the current filename of the targeted gist file. To delete a file, set its value to null.

Example input: `{"gist_id":"<gist_id>"}`

### `github_git_blob_create`

Create a Blob · Write

Create a Git blob object in a repository. Requires push access to the repository.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `content` (`string`, required): The new blob's content
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `encoding` (`string`, optional): The encoding used for content. Currently utf-8 and base64 are supported. One of: `utf-8`, `base64`.

Example input: `{"content":"<content>","owner":"<owner>","repo":"<repo>"}`

### `github_git_commit_create`

Create a Commit · Write

Creates a new Git commit object. Requires push access to the repository.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `message` (`string`, required): The commit message
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `tree` (`string`, required): The SHA of the tree object this commit points to
- `author` (`object`, optional): Information about the author of the commit: name, email, and optional ISO 8601 date. By default the author is the authenticated user and the current date. Expected shape: {"name": "Monalisa Octocat", "email": "octocat@github.com", "date": "2008-07-09T16:13:30+12:00"}
- `parents` (`array`, optional): The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit is written as a root commit. Provide an array of one SHA for a normal commit, or more than one for a merge commit. Expected shape: ["7d1b31e74ee336d15cbd21741bc88a537ed063a0"]

Example input: `{"message":"<message>","owner":"<owner>","repo":"<repo>","tree":"<tree>"}`

### `github_git_ref_update`

Update a Reference · Write

Updates the provided reference to point to a new SHA. Leaving force out or false ensures the update is a fast-forward update.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `ref` (`string`, required): The reference name, formatted as heads/<branch name> or tags/<tag name>
- `repo` (`string`, required): The name of the repository
- `sha` (`string`, required): The SHA1 value to set this reference to
- `force` (`boolean`, optional): Indicates whether to force the update or to make sure the update is a fast-forward update

Example input: `{"owner":"<owner>","ref":"<ref>","repo":"<repo>","sha":"<sha>"}`

### `github_git_tag_create`

Create a Tag Object · Write

Create a Git tag object in the repository's low-level Git database (an annotated tag). Note this only creates the tag object itself — to make it a real ref you can list/checkout, also create a matching reference at refs/tags/<tag> pointing at this tag object's SHA.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `message` (`string`, required): The tag message
- `object` (`string`, required): The SHA of the git object this is tagging
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `tag` (`string`, required): The tag's name, typically a version such as 'v0.0.1'
- `type` (`string`, required): The type of the object being tagged. One of: `commit`, `tree`, `blob`.
- `tagger_date` (`string`, optional): When this tag was created, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
- `tagger_email` (`string`, optional): Email of the person creating the tag. Required if any tagger field is provided.
- `tagger_name` (`string`, optional): Name of the person creating the tag. Required if any tagger field is provided.

Example input: `{"message":"<message>","object":"<object>","owner":"<owner>","repo":"<repo>","tag":"<tag>","type":"commit"}`

### `github_git_tree_create`

Create a Tree · Write

Creates a Git tree object, accepting nested entries. If both a tree and a nested path modifying that tree are specified, this overwrites the contents of the tree and creates a new tree structure. Returns an error if trying to delete a file that does not exist.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `tree` (`array`, required): Array of objects specifying a tree structure, each with path, mode (100644 file, 100755 executable, 040000 subdirectory, 160000 submodule, 120000 symlink), type (blob, tree, or commit), and either sha or content. Expected shape: [{"path": "file.rb", "mode": "100644", "type": "blob", "sha": "44b4fc6d56897b048c772eb4087f854f46256132"}]
- `base_tree` (`string`, optional): The SHA1 of an existing Git tree object to use as the base for the new tree. If provided, a new tree is created from entries in base_tree plus entries in the tree parameter (which overwrite base_tree entries with the same path). If omitted, only entries in tree are used, and any files from the parent commit not defined in tree will be listed as deleted.

Example input: `{"owner":"<owner>","repo":"<repo>","tree":[]}`

### `github_issue_assignees_add`

Add Issue Assignees · Write

Add up to 10 assignees to an issue. Users already assigned remain assigned; only users with push access are actually added.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `assignees` (`array`, optional): Usernames of people to assign to this issue

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_comment_create`

Create Issue Comment · Write

Create a comment on an issue or pull request. Every pull request is an issue, but not every issue is a pull request.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `body` (`string`, required): The contents of the comment
- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"body":"<body>","issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_comment_update`

Update Issue Comment · Write

Update a comment on an issue or pull request. Every pull request is an issue, but not every issue is a pull request.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `body` (`string`, required): The contents of the comment
- `comment_id` (`number`, required): The unique identifier of the comment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"body":"<body>","comment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_create`

Create Issue · Write

Create a new issue in a repository. Requires push access to set assignees, milestones, and labels.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `title` (`string`, required): The title of the issue
- `assignees` (`array`, optional): GitHub usernames to assign to the issue
- `body` (`string`, optional): The contents of the issue
- `labels` (`array`, optional): Labels to associate with the issue
- `milestone` (`number`, optional): Milestone number to associate with the issue
- `type` (`string`, optional): The name of the issue type

Example input: `{"owner":"<owner>","repo":"<repo>","title":"<title>"}`

### `github_issue_labels_add`

Add Issue Labels · Write

Add labels to an issue, appending to any existing labels. To replace all labels instead, use github_issue_labels_set.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `labels` (`array`, required): The names of the labels to add to the issue's existing labels
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"issue_number":1,"labels":[],"owner":"<owner>","repo":"<repo>"}`

### `github_issue_labels_set`

Set Issue Labels · Write

Remove any previous labels and set the new labels for an issue. Pass an empty array to remove all labels.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `labels` (`array`, required): The names of the labels to set for the issue, replacing any existing labels. Pass an empty array to remove all labels
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"issue_number":1,"labels":[],"owner":"<owner>","repo":"<repo>"}`

### `github_issue_lock`

Lock Issue · Write

Lock an issue or pull request conversation to prevent further comments from being added. Only users with push access can lock an issue or pull request conversation.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `lock_reason` (`string`, optional): The reason for locking the issue or pull request conversation. One of: `off-topic`, `too heated`, `resolved`, `spam`.

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_reaction_create`

Create Issue Reaction · Write

Create a reaction (emoji) to an issue. If you create a reaction that already exists on this issue, GitHub responds with a 200 OK and returns the existing reaction instead of creating a duplicate.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `content` (`string`, required): The reaction type to add to the issue. One of: `+1`, `-1`, `laugh`, `confused`, `heart`, `hooray`, `rocket`, `eyes`.
- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"content":"+1","issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_update`

Update Issue · Write

Update an existing issue in a repository. Issue owners and users with push access or Triage role can edit an issue.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `assignees` (`array`, optional): Usernames to replace the set of assignees on this issue. Send an empty array to clear all assignees
- `body` (`string`, optional): The contents of the issue
- `labels` (`array`, optional): Labels to replace the set of labels on this issue. Send an empty array to clear all labels
- `milestone` (`number`, optional): Milestone number to associate with the issue, or null to remove the current milestone
- `state` (`string`, optional): The open or closed state of the issue. One of: `open`, `closed`.
- `state_reason` (`string`, optional): The reason for the state change. Ignored unless state is changed. One of: `completed`, `not_planned`, `duplicate`, `reopened`.
- `title` (`string`, optional): The title of the issue

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_label_create`

Create Label · Write

Create a label for a repository with the given name and color. The name and color are required; color must be a hexadecimal code without the leading '#'.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): The name of the label
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `color` (`string`, optional): The hexadecimal color code for the label, without the leading '#'
- `description` (`string`, optional): A short description of the label. Must be 100 characters or fewer

Example input: `{"name":"<name>","owner":"<owner>","repo":"<repo>"}`

### `github_label_update`

Update Label · Write

Update a label in a repository using its current name.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `name` (`string`, required): The current name of the label to update
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `color` (`string`, optional): The hexadecimal color code for the label, without the leading '#'
- `description` (`string`, optional): A short description of the label. Must be 100 characters or fewer
- `new_name` (`string`, optional): The new name of the label

Example input: `{"name":"<name>","owner":"<owner>","repo":"<repo>"}`

### `github_milestone_create`

Create Milestone · Write

Create a milestone in a repository.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `title` (`string`, required): The title of the milestone
- `description` (`string`, optional): A description of the milestone
- `due_on` (`string`, optional): The milestone due date, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
- `state` (`string`, optional): The state of the milestone. Either open or closed. One of: `open`, `closed`.

Example input: `{"owner":"<owner>","repo":"<repo>","title":"<title>"}`

### `github_milestone_update`

Update Milestone · Write

Update a milestone in a repository using the given milestone number. All fields are optional.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `milestone_number` (`number`, required): The number that identifies the milestone
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `description` (`string`, optional): A description of the milestone
- `due_on` (`string`, optional): The milestone due date, in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ
- `state` (`string`, optional): The state of the milestone. Either open or closed. One of: `open`, `closed`.
- `title` (`string`, optional): The title of the milestone

Example input: `{"milestone_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_org_membership_set`

Set Organization Membership for a User · Write

Add or update a user's membership in an organization, optionally inviting them if they are not already a member.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `username` (`string`, required): The handle for the GitHub user account
- `role` (`string`, optional): The role to give the user in the organization. One of: `admin`, `member`.

Example input: `{"org":"<org>","username":"<username>"}`

### `github_org_update`

Update Organization · Write

Update the profile and settings of an organization. Requires admin access.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `billing_email` (`string`, optional): Billing email address; not publicized
- `company` (`string`, optional): The company name
- `default_repository_permission` (`string`, optional): Default permission level members have for organization repositories. One of: `read`, `write`, `admin`, `none`.
- `description` (`string`, optional): The description of the company. Maximum 160 characters
- `email` (`string`, optional): The publicly visible email address
- `has_organization_projects` (`boolean`, optional): Whether an organization can use organization projects
- `has_repository_projects` (`boolean`, optional): Whether repositories that belong to the organization can use repository projects
- `location` (`string`, optional): The location
- `members_can_create_repositories` (`boolean`, optional): Whether non-admin organization members can create repositories
- `name` (`string`, optional): The shorthand name of the company

Example input: `{"org":"<org>"}`

### `github_pull_request_branch_update`

Update Pull Request Branch · Write

Update a pull request branch with the latest upstream changes by merging the base branch into the head branch, asynchronously.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `expected_head_sha` (`string`, optional): The expected SHA of the pull request's HEAD ref. Default: the SHA of the pull request's current HEAD ref

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_comment_create`

Create Pull Request Review Comment · Write

Create a review comment on the diff of a specified pull request at a specific line. Use line and side (and optionally start_line/start_side for multi-line comments); the position parameter is deprecated in favor of line.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `body` (`string`, required): The text of the review comment
- `commit_id` (`string`, required): The SHA of the commit needing a comment. Not using the latest commit SHA may render the comment outdated if a later commit modifies the specified line
- `owner` (`string`, required): The account owner of the repository
- `path` (`string`, required): The relative path to the file that necessitates a comment
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `line` (`number`, optional): The line of the blob in the pull request diff that the comment applies to. Required unless using subject_type:file. For a multi-line comment, the last line of the range
- `position` (`number`, optional): Deprecated. The position in the diff where you want to add a review comment, counted from the first @@ hunk header. Use line instead
- `side` (`string`, optional): In a split diff view, the side of the diff the changes appear on. LEFT for deletions, RIGHT for additions or unchanged context lines. One of: `LEFT`, `RIGHT`.
- `start_line` (`number`, optional): Required when using multi-line comments unless using in_reply_to. The first line in the pull request diff that the multi-line comment applies to
- `start_side` (`string`, optional): Required when using multi-line comments unless using in_reply_to. The starting side of the diff the comment applies to. One of: `LEFT`, `RIGHT`.

Example input: `{"body":"<body>","commit_id":"<commit_id>","owner":"<owner>","path":"<path>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_create`

Create Pull Request · Write

Create a new pull request in a repository. Requires write access to the head branch.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `base` (`string`, required): The name of the branch you want the changes pulled into
- `head` (`string`, required): The name of the branch where your changes are implemented (format: user:branch)
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `body` (`string`, optional): The contents of the pull request description
- `draft` (`boolean`, optional): Indicates whether the pull request is a draft
- `maintainer_can_modify` (`boolean`, optional): Indicates whether maintainers can modify the pull request
- `title` (`string`, optional): The title of the pull request

Example input: `{"base":"<base>","head":"<head>","owner":"<owner>","repo":"<repo>"}`

### `github_pull_request_review_comment_update`

Update Pull Request Review Comment · Write

Update the text of a pull request review comment.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `body` (`string`, required): The text of the reply to the review comment
- `comment_id` (`number`, required): The unique identifier of the comment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"body":"<body>","comment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_pull_request_review_create`

Create Pull Request Review · Write

Create a review on a pull request. Leave event blank to create a PENDING review that must later be submitted, or set event to APPROVE, REQUEST_CHANGES, or COMMENT to submit it immediately.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `body` (`string`, optional): The body text of the review. Required when event is REQUEST_CHANGES or COMMENT
- `comments` (`array`, optional): Draft review comments specifying the location, destination, and contents of inline comments. Each item needs path and body, plus line/position to locate the diff line
- `commit_id` (`string`, optional): The SHA of the commit that needs a review. Defaults to the most recent commit in the pull request when not specified
- `event` (`string`, optional): The review action to perform. Leave blank to create a PENDING review. One of: `APPROVE`, `REQUEST_CHANGES`, `COMMENT`.

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_review_dismiss`

Dismiss Pull Request Review · Write

Dismiss a review on a pull request. Dismissed reviews no longer count toward required review approvals.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `message` (`string`, required): The message for the pull request review dismissal
- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `review_id` (`number`, required): The unique identifier of the review
- `event` (`string`, optional): The dismissal event. One of: `DISMISS`.

Example input: `{"message":"<message>","owner":"<owner>","pull_number":1,"repo":"<repo>","review_id":1}`

### `github_pull_request_review_submit`

Submit Pull Request Review · Write

Submit a pending review for a pull request that was previously created without an event (PENDING state).

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `event` (`string`, required): The review action to perform. Leaving this blank returns HTTP 422 since a submitted review requires an action. One of: `APPROVE`, `REQUEST_CHANGES`, `COMMENT`.
- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `review_id` (`number`, required): The unique identifier of the pending review to submit
- `body` (`string`, optional): The body text of the pull request review

Example input: `{"event":"APPROVE","owner":"<owner>","pull_number":1,"repo":"<repo>","review_id":1}`

### `github_pull_request_review_update`

Update Pull Request Review · Write

Update the body text of an existing pull request review.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `body` (`string`, required): The body text of the pull request review
- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `review_id` (`number`, required): The unique identifier of the review

Example input: `{"body":"<body>","owner":"<owner>","pull_number":1,"repo":"<repo>","review_id":1}`

### `github_pull_request_reviewers_request`

Request Pull Request Reviewers · Write

Request reviews for a pull request from a given set of users and/or teams. Triggers notifications to the requested reviewers.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `reviewers` (`array`, optional): An array of user logins that will be requested to review
- `team_reviewers` (`array`, optional): An array of team slugs that will be requested to review

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_update`

Update Pull Request · Write

Update a pull request's title, body, state, or base branch. Requires write access to the head or source branch.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `base` (`string`, optional): The name of the branch you want your changes pulled into. Must be an existing branch on the current repository
- `body` (`string`, optional): The contents of the pull request
- `state` (`string`, optional): State of this pull request. Either open or closed. One of: `open`, `closed`.
- `title` (`string`, optional): The title of the pull request

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_release_create`

Create Release · Write

Create a new release in a repository. Requires push access to the repository.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `tag_name` (`string`, required): The name of the tag
- `body` (`string`, optional): Text describing the contents of the tag
- `draft` (`boolean`, optional): true to create a draft (unpublished) release, false to create a published one
- `generate_release_notes` (`boolean`, optional): Whether to automatically generate the name and body for this release. If name is specified, it will be used; otherwise a name is auto-generated. If body is specified, it is pre-pended to the automatically generated notes
- `name` (`string`, optional): The name of the release
- `prerelease` (`boolean`, optional): true to identify the release as a prerelease, false to identify the release as a full release
- `target_commitish` (`string`, optional): Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch

Example input: `{"owner":"<owner>","repo":"<repo>","tag_name":"<tag_name>"}`

### `github_release_update`

Update Release · Write

Update an existing release. Requires push access to the repository. All fields except owner, repo, and release_id are optional.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `release_id` (`number`, required): The unique identifier of the release
- `repo` (`string`, required): The name of the repository
- `body` (`string`, optional): Text describing the contents of the tag
- `draft` (`boolean`, optional): true makes the release a draft, and false publishes the release
- `generate_release_notes` (`boolean`, optional): Whether to automatically generate the name and body for this release. If name is specified, it will be used; otherwise a name is auto-generated. If body is specified, it is pre-pended to the automatically generated notes
- `name` (`string`, optional): The name of the release
- `prerelease` (`boolean`, optional): true to identify the release as a prerelease, false to identify the release as a full release
- `tag_name` (`string`, optional): The name of the tag
- `target_commitish` (`string`, optional): Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. Default: the repository's default branch

Example input: `{"owner":"<owner>","release_id":1,"repo":"<repo>"}`

### `github_repo_create_for_user`

Create Repository For Authenticated User · Write

Create a new repository for the authenticated user.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): The name of the repository
- `auto_init` (`boolean`, optional): Whether the repository is initialized with a minimal README
- `description` (`string`, optional): A short description of the repository
- `gitignore_template` (`string`, optional): The desired language or platform to apply to the .gitignore
- `has_issues` (`boolean`, optional): Whether issues are enabled
- `has_projects` (`boolean`, optional): Whether projects are enabled
- `has_wiki` (`boolean`, optional): Whether the wiki is enabled
- `homepage` (`string`, optional): A URL with more information about the repository
- `is_template` (`boolean`, optional): Whether this repository acts as a template that can be used to generate new repositories
- `license_template` (`string`, optional): The license keyword of the open source license for this repository
- `private` (`boolean`, optional): Whether the repository is private

Example input: `{"name":"<name>"}`

### `github_repo_create_from_template`

Create Repository from Template · Write

Create a new repository using a repository template. The authenticated user must own or be a member of an organization that owns the template.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): The name of the new repository
- `template_owner` (`string`, required): The account owner of the template repository
- `template_repo` (`string`, required): The name of the template repository
- `description` (`string`, optional): A short description of the new repository
- `include_all_branches` (`boolean`, optional): Set to true to include the directory structure and files from all branches in the template, not just the default branch
- `owner` (`string`, optional): The organization or person who will own the new repository
- `private` (`boolean`, optional): Either true to create a new private repository or false to create a new public one

Example input: `{"name":"<name>","template_owner":"<template_owner>","template_repo":"<template_repo>"}`

### `github_repo_create_in_org`

Create Organization Repository · Write

Create a new repository in the specified organization. The authenticated user must be a member of the organization.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): The name of the repository
- `org` (`string`, required): The organization name
- `auto_init` (`boolean`, optional): Pass true to create an initial commit with empty README
- `description` (`string`, optional): A short description of the repository
- `gitignore_template` (`string`, optional): Desired language or platform .gitignore template to apply
- `has_issues` (`boolean`, optional): Either true to enable issues for this repository or false to disable them
- `has_projects` (`boolean`, optional): Either true to enable projects for this repository or false to disable them
- `has_wiki` (`boolean`, optional): Either true to enable the wiki for this repository or false to disable it
- `homepage` (`string`, optional): A URL with more information about the repository
- `is_template` (`boolean`, optional): Either true to make this repo available as a template repository or false to prevent it
- `license_template` (`string`, optional): License keyword such as mit or mpl-2.0
- `private` (`boolean`, optional): Whether the repository is private

Example input: `{"name":"<name>","org":"<org>"}`

### `github_repo_dispatch_event_create`

Create Repository Dispatch Event · Write

Trigger a repository_dispatch webhook event that workflows listening for the repository_dispatch event can use to run a workflow.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `event_type` (`string`, required): A custom webhook event name. Must be 100 characters or fewer
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `client_payload` (`object`, optional): JSON payload with extra information about the event. Maximum 10 top-level properties and 64KB total size

Example input: `{"event_type":"<event_type>","owner":"<owner>","repo":"<repo>"}`

### `github_repo_fork_create`

Create Fork · Write

Create a fork of a repository for the authenticated user. Forking happens asynchronously; git objects may not be immediately accessible.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `default_branch_only` (`boolean`, optional): When forking from an existing repository, fork with only the default branch
- `name` (`string`, optional): When forking from an existing repository, a new name for the fork
- `organization` (`string`, optional): Optional parameter to specify the organization name if forking into an organization

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_invitation_update`

Update Repository Invitation · Write

Update an existing repository invitation, changing the permission level the invitee will receive when they accept.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `invitation_id` (`number`, required): The unique identifier of the repository invitation
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `permissions` (`string`, optional): The permissions that the associated user will have on the repository. One of: `read`, `write`, `maintain`, `triage`, `admin`.

Example input: `{"invitation_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_repo_star`

Star Repository · Write

Star a repository for the authenticated user. Requires authentication and starring permissions.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository without the .git extension

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_subscription_set`

Set Repository Subscription · Write

Watch or unwatch a repository. Set 'subscribed' to true to watch the repository, or 'ignored' to true to stop notifications from it.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `ignored` (`boolean`, optional): Determines if all notifications should be blocked from this repository
- `subscribed` (`boolean`, optional): Determines if notifications should be received from this repository

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_topics_replace`

Replace All Repository Topics · Write

Replace all topics for a repository. Send an empty array to clear all topics. Topic names are saved as lowercase.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `names` (`array`, required): An array of topics to add to the repository, replacing the existing set of topics
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"names":[],"owner":"<owner>","repo":"<repo>"}`

### `github_repo_transfer`

Transfer Repository · Write

Transfer a repository owned by an organization or personal account to a new owner. Requires admin access, and the new owner must accept the transfer if it is not owned by an org you also own.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `new_owner` (`string`, required): The username or organization name the repository will be transferred to
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `new_name` (`string`, optional): The new name to be given to the repository
- `team_ids` (`array`, optional): ID of the team or teams to add to the repository (organization-owned repositories only)

Example input: `{"new_owner":"<new_owner>","owner":"<owner>","repo":"<repo>"}`

### `github_repo_update`

Update Repository · Write

Update a repository's settings such as name, description, visibility, default branch, and issue/wiki features.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `allow_auto_merge` (`boolean`, optional): Either true to allow auto-merge on pull requests, or false to disallow auto-merge
- `allow_forking` (`boolean`, optional): Either true to allow private forks, or false to prevent private forks
- `allow_merge_commit` (`boolean`, optional): Either true to allow merging pull requests with a merge commit, or false to prevent it
- `allow_rebase_merge` (`boolean`, optional): Either true to allow rebase-merging pull requests, or false to prevent it
- `allow_squash_merge` (`boolean`, optional): Either true to allow squash-merging pull requests, or false to prevent squash-merging
- `archived` (`boolean`, optional): Whether to archive this repository. false will unarchive a previously archived repository
- `default_branch` (`string`, optional): Updates the default branch for this repository
- `delete_branch_on_merge` (`boolean`, optional): Either true to allow automatically deleting head branches when pull requests are merged, or false to prevent it
- `description` (`string`, optional): A short description of the repository
- `has_issues` (`boolean`, optional): Either true to enable issues for this repository or false to disable them
- `has_projects` (`boolean`, optional): Either true to enable projects for this repository or false to disable them
- `has_wiki` (`boolean`, optional): Either true to enable the wiki for this repository or false to disable it
- `homepage` (`string`, optional): A URL with more information about the repository
- `name` (`string`, optional): The name of the repository
- `private` (`boolean`, optional): Either true to make the repository private or false to make it public

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_variable_create`

Create Repository Actions Variable · Write

Create a new Actions variable on a repository, for use in GitHub Actions workflows.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): The name of the variable
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `value` (`string`, required): The value of the variable

Example input: `{"name":"<name>","owner":"<owner>","repo":"<repo>","value":"<value>"}`

### `github_repo_variable_update`

Update Repository Actions Variable · Write

Update the name or value of an existing Actions variable on a repository.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `variable_name` (`string`, required): The name of the variable
- `name` (`string`, optional): The name of the variable
- `value` (`string`, optional): The value of the variable

Example input: `{"owner":"<owner>","repo":"<repo>","variable_name":"<variable_name>"}`

### `github_sub_issue_add`

Add Sub-Issue · Write

Add an existing issue as a sub-issue of a parent issue, creating a parent/child relationship between them.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `issue_number` (`number`, required): The number that identifies the parent issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `sub_issue_id` (`number`, required): The internal id (not the issue number) of the issue to add as a sub-issue. Find it in the 'id' field of the get-issue response for the issue you want to add.
- `replace_parent` (`boolean`, optional): When true, replaces the sub-issue's current parent issue (if it already has one) with this parent

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>","sub_issue_id":1}`

### `github_team_create`

Create Team · Write

Create a new team in an organization. The authenticated user must be an organization owner or a team maintainer.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `name` (`string`, required): The name of the team
- `org` (`string`, required): The organization name (case-insensitive)
- `description` (`string`, optional): The description of the team
- `maintainers` (`array`, optional): GitHub usernames of organization members who will become team maintainers
- `parent_team_id` (`number`, optional): The ID of a team to set as the parent team
- `privacy` (`string`, optional): The level of privacy this team should have. One of: `secret`, `closed`.
- `repo_names` (`array`, optional): Full name (e.g., 'org/repo') of repositories to add the team to

Example input: `{"name":"<name>","org":"<org>"}`

### `github_team_membership_set`

Add or Update Team Membership for a User · Write

Add an organization member to a team, or update their role on the team. An authenticated organization owner or team maintainer can perform this action. If the user is not an organization member, this sends an email invitation and the membership stays 'pending' until accepted.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `team_slug` (`string`, required): The slug of the team name
- `username` (`string`, required): The handle for the GitHub user account
- `role` (`string`, optional): The role that this user should have in the team. One of: `member`, `maintainer`.

Example input: `{"org":"<org>","team_slug":"<team_slug>","username":"<username>"}`

### `github_team_repo_add`

Add or Update Team Repository Permissions · Write

Add a repository to a team, or update the team's permission level on a repository it already has access to.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `team_slug` (`string`, required): The slug of the team name
- `permission` (`string`, optional): The permission to grant the team on this repository. Custom repository roles are also accepted if the organization has defined any. One of: `pull`, `triage`, `push`, `maintain`, `admin`.

Example input: `{"org":"<org>","owner":"<owner>","repo":"<repo>","team_slug":"<team_slug>"}`

### `github_team_update`

Update Team · Write

Update a team's name, description, privacy, or parent team.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `team_slug` (`string`, required): The slug of the team name
- `description` (`string`, optional): The description of the team
- `name` (`string`, optional): The name of the team
- `parent_team_id` (`number`, optional): The ID of a team to set as the parent team
- `privacy` (`string`, optional): The level of privacy this team should have. One of: `secret`, `closed`.

Example input: `{"org":"<org>","team_slug":"<team_slug>"}`

### `github_webhook_create`

Create Repository Webhook · Write

Create a webhook on a repository. Repositories can have up to 20 webhooks.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `config` (`object`, required): Key/value pairs to provide settings for this webhook, including url, content_type, secret, and insecure_ssl
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `active` (`boolean`, optional): Determines if notifications are sent when the webhook is triggered
- `events` (`array`, optional): Determines what events the hook is triggered for
- `name` (`string`, optional): Use 'web' to create a webhook. Default: web. This parameter only accepts the value 'web'

Example input: `{"config":{},"owner":"<owner>","repo":"<repo>"}`

### `github_webhook_ping`

Ping Repository Webhook · Write

Trigger a ping event to test that a repository webhook is configured correctly.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `hook_id` (`number`, required): The unique identifier of the webhook
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"hook_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_webhook_update`

Update Repository Webhook · Write

Update the configuration, events, or active state of an existing repository webhook.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `hook_id` (`number`, required): The unique identifier of the webhook
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `active` (`boolean`, optional): Determines if notifications are sent when the webhook is triggered
- `add_events` (`array`, optional): A list of events to be added to the list of events that the hook triggers for
- `config` (`object`, optional): Key/value pairs to provide settings for this webhook, including url, content_type, secret, and insecure_ssl
- `events` (`array`, optional): Determines what events the hook is triggered for. This replaces the entire array of events
- `remove_events` (`array`, optional): A list of events to be removed from the list of events that the hook triggers for

Example input: `{"hook_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_workflow_disable`

Disable Workflow · Write

Disable a workflow, preventing it from running until re-enabled.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `workflow_id` (`string`, required): The ID of the workflow, or the workflow file name

Example input: `{"owner":"<owner>","repo":"<repo>","workflow_id":"<workflow_id>"}`

### `github_workflow_dispatch`

Create a Workflow Dispatch Event · Write

Trigger a workflow run using the workflow's ID or filename. The workflow must declare a workflow_dispatch trigger to be dispatched this way.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `ref` (`string`, required): The git reference for the workflow. The reference can be a branch or tag name
- `repo` (`string`, required): The name of the repository
- `workflow_id` (`string`, required): The ID of the workflow, or the workflow file name
- `inputs` (`object`, optional): Input keys and values configured in the workflow file. The maximum number of properties is 25

Example input: `{"owner":"<owner>","ref":"<ref>","repo":"<repo>","workflow_id":"<workflow_id>"}`

### `github_workflow_enable`

Enable Workflow · Write

Enable a workflow that was previously disabled.

Read only: no. Destructive: no. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `workflow_id` (`string`, required): The ID of the workflow, or the workflow file name

Example input: `{"owner":"<owner>","repo":"<repo>","workflow_id":"<workflow_id>"}`

### `github_workflow_run_cancel`

Cancel a Workflow Run · Write

Cancel a workflow run using its ID. You can use this endpoint to cancel a workflow run that is either in_progress or queued.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `run_id` (`number`, required): The unique identifier of the workflow run

Example input: `{"owner":"<owner>","repo":"<repo>","run_id":1}`

### `github_workflow_run_rerun`

Re-run a Workflow · Write

Trigger a re-run of all the jobs in a workflow run using its ID.

Read only: no. Destructive: no. Idempotent (safe to retry): no.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `run_id` (`number`, required): The unique identifier of the workflow run
- `enable_debug_logging` (`boolean`, optional): Whether to enable debug logging for the re-run

Example input: `{"owner":"<owner>","repo":"<repo>","run_id":1}`

### `github_artifact_delete`

Delete Artifact · Destructive

Delete a workflow run artifact.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `artifact_id` (`number`, required): The unique identifier of the artifact
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"artifact_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_branch_protection_delete`

Delete Branch Protection · Destructive

Remove all branch protection settings from a branch.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `branch` (`string`, required): The name of the branch
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"branch":"<branch>","owner":"<owner>","repo":"<repo>"}`

### `github_collaborator_remove`

Remove Collaborator · Destructive

Remove a collaborator from a repository. Requires admin access to the repository.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `username` (`string`, required): The username of the collaborator to remove

Example input: `{"owner":"<owner>","repo":"<repo>","username":"<username>"}`

### `github_commit_comment_delete`

Delete Commit Comment · Destructive

Delete a commit comment.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `comment_id` (`number`, required): The unique identifier of the comment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"comment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_deployment_delete`

Delete Deployment · Destructive

Delete a deployment. Only inactive deployments can be deleted; transition the deployment to inactive first.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `deployment_id` (`number`, required): The unique identifier of the deployment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"deployment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_file_create_update`

Create or Update File · Destructive

Create a new file or update an existing file in a GitHub repository. Content must be Base64 encoded. Requires SHA when updating existing files.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `content` (`string`, required): The new file content (Base64 encoded)
- `message` (`string`, required): The commit message for this change
- `owner` (`string`, required): The account owner of the repository
- `path` (`string`, required): The file path in the repository
- `repo` (`string`, required): The name of the repository
- `author` (`object`, optional): Author information object with name and email
- `branch` (`string`, optional): The branch name
- `committer` (`object`, optional): Committer information object with name and email
- `sha` (`string`, optional): The blob SHA of the file being replaced (required when updating existing files)

Example input: `{"content":"<content>","message":"<message>","owner":"<owner>","path":"<path>","repo":"<repo>"}`

### `github_file_delete`

Delete File · Destructive

Delete a file in a repository. Requires the blob SHA of the file being deleted.

Read only: no. Destructive: yes. Idempotent (safe to retry): no.

Inputs:

- `message` (`string`, required): The commit message
- `owner` (`string`, required): The account owner of the repository
- `path` (`string`, required): The path to the file to delete
- `repo` (`string`, required): The name of the repository
- `sha` (`string`, required): The blob SHA of the file being deleted
- `branch` (`string`, optional): The branch name. Default: the repository's default branch

Example input: `{"message":"<message>","owner":"<owner>","path":"<path>","repo":"<repo>","sha":"<sha>"}`

### `github_gist_comment_delete`

Delete Gist Comment · Destructive

Delete a gist comment.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `comment_id` (`number`, required): The unique identifier of the comment
- `gist_id` (`string`, required): The unique identifier of the gist

Example input: `{"comment_id":1,"gist_id":"<gist_id>"}`

### `github_gist_delete`

Delete Gist · Destructive

Permanently delete a gist owned by the authenticated user.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `gist_id` (`string`, required): The unique identifier of the gist to delete

Example input: `{"gist_id":"<gist_id>"}`

### `github_gist_unstar`

Unstar Gist · Destructive

Unstar a gist for the authenticated user.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `gist_id` (`string`, required): The unique identifier of the gist

Example input: `{"gist_id":"<gist_id>"}`

### `github_git_ref_delete`

Delete a Reference · Destructive

Deletes the provided reference. This permanently removes a branch or tag ref from the Git database.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `ref` (`string`, required): The reference name, formatted as heads/<branch name> or tags/<tag name>
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","ref":"<ref>","repo":"<repo>"}`

### `github_issue_assignees_remove`

Remove Issue Assignees · Destructive

Remove one or more assignees from an issue.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `assignees` (`array`, optional): Usernames of assignees to remove from the issue

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_comment_delete`

Delete Issue Comment · Destructive

Delete a comment on an issue or pull request. Every pull request is an issue, but not every issue is a pull request.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `comment_id` (`number`, required): The unique identifier of the comment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"comment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_label_remove`

Remove Issue Label · Destructive

Remove a single label from an issue.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `label_name` (`string`, required): The name of the label
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"issue_number":1,"label_name":"<label_name>","owner":"<owner>","repo":"<repo>"}`

### `github_issue_labels_remove_all`

Remove All Issue Labels · Destructive

Remove all labels from an issue.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_issue_unlock`

Unlock Issue · Destructive

Unlock an issue, allowing new comments from users who are not collaborators.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_label_delete`

Delete Label · Destructive

Delete a label from a repository using the given label name.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `name` (`string`, required): The name of the label to delete
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"name":"<name>","owner":"<owner>","repo":"<repo>"}`

### `github_milestone_delete`

Delete Milestone · Destructive

Delete a milestone from a repository using the given milestone number.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `milestone_number` (`number`, required): The number that identifies the milestone
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"milestone_number":1,"owner":"<owner>","repo":"<repo>"}`

### `github_org_member_remove`

Remove Organization Member · Destructive

Remove a member from an organization. Removing them will also remove them from all teams and revoke access to organization repositories.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `username` (`string`, required): The handle for the GitHub user account

Example input: `{"org":"<org>","username":"<username>"}`

### `github_pull_request_merge`

Merge Pull Request · Destructive

Merge a pull request into its base branch using the merge, squash, or rebase method.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `commit_message` (`string`, optional): Extra detail to append to automatic merge commit message
- `commit_title` (`string`, optional): Title for the automatic merge commit message
- `merge_method` (`string`, optional): The merge method to use. One of: `merge`, `squash`, `rebase`.
- `sha` (`string`, optional): SHA that pull request head must match to allow merge

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>"}`

### `github_pull_request_review_comment_delete`

Delete Pull Request Review Comment · Destructive

Delete a pull request review comment.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `comment_id` (`number`, required): The unique identifier of the comment
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"comment_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_pull_request_review_delete`

Delete Pending Pull Request Review · Destructive

Delete a pull request review that is still pending (has not been submitted).

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `review_id` (`number`, required): The unique identifier of the review

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>","review_id":1}`

### `github_pull_request_reviewers_remove`

Remove Requested Reviewers from a Pull Request · Destructive

Remove requested reviewers, users and/or teams, from a pull request.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `pull_number` (`number`, required): The number that identifies the pull request
- `repo` (`string`, required): The name of the repository
- `reviewers` (`array`, required): An array of user logins whose review requests will be removed
- `team_reviewers` (`array`, optional): An array of team slugs whose review requests will be removed

Example input: `{"owner":"<owner>","pull_number":1,"repo":"<repo>","reviewers":[]}`

### `github_release_asset_delete`

Delete Release Asset · Destructive

Delete a release asset from a repository. This permanently removes the uploaded binary file from the release.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `asset_id` (`number`, required): The unique identifier of the release asset
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"asset_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_release_delete`

Delete Release · Destructive

Delete a release. Requires push access to the repository. This action cannot be undone.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `release_id` (`number`, required): The unique identifier of the release
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","release_id":1,"repo":"<repo>"}`

### `github_repo_delete`

Delete Repository · Destructive

Delete a repository. Deleting a repository requires admin access. This action is irreversible.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_invitation_delete`

Delete Repository Invitation · Destructive

Delete a repository invitation, revoking the invite before it is accepted.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `invitation_id` (`number`, required): The unique identifier of the repository invitation
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"invitation_id":1,"owner":"<owner>","repo":"<repo>"}`

### `github_repo_secret_delete`

Delete Repository Actions Secret · Destructive

Delete an Actions secret from a repository.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `secret_name` (`string`, required): The name of the secret

Example input: `{"owner":"<owner>","repo":"<repo>","secret_name":"<secret_name>"}`

### `github_repo_unstar`

Unstar Repository · Destructive

Unstar a repository that the authenticated user has previously starred.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"owner":"<owner>","repo":"<repo>"}`

### `github_repo_variable_delete`

Delete Repository Actions Variable · Destructive

Delete an Actions variable from a repository.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `variable_name` (`string`, required): The name of the variable

Example input: `{"owner":"<owner>","repo":"<repo>","variable_name":"<variable_name>"}`

### `github_sub_issue_remove`

Remove Sub-Issue · Destructive

Remove a sub-issue from its parent issue, breaking the parent/child relationship between them. The issue itself is not deleted.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `issue_number` (`number`, required): The number that identifies the parent issue
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `sub_issue_id` (`number`, required): The internal id (not the issue number) of the sub-issue to remove from the parent

Example input: `{"issue_number":1,"owner":"<owner>","repo":"<repo>","sub_issue_id":1}`

### `github_team_delete`

Delete Team · Destructive

Delete a team from an organization. This does not delete the repositories the team had access to; only the team itself.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `team_slug` (`string`, required): The slug of the team name

Example input: `{"org":"<org>","team_slug":"<team_slug>"}`

### `github_team_member_remove`

Remove Team Membership for a User · Destructive

Remove a user from a team. Does not remove them from the organization itself.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `team_slug` (`string`, required): The slug of the team name
- `username` (`string`, required): The handle for the GitHub user account

Example input: `{"org":"<org>","team_slug":"<team_slug>","username":"<username>"}`

### `github_team_repo_remove`

Remove Team Repository · Destructive

Remove a repository from a team. The repository itself is not deleted, only the team's access to it.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `org` (`string`, required): The organization name (case-insensitive)
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository
- `team_slug` (`string`, required): The slug of the team name

Example input: `{"org":"<org>","owner":"<owner>","repo":"<repo>","team_slug":"<team_slug>"}`

### `github_webhook_delete`

Delete Repository Webhook · Destructive

Delete a repository webhook.

Read only: no. Destructive: yes. Idempotent (safe to retry): yes.

Inputs:

- `hook_id` (`number`, required): The unique identifier of the webhook
- `owner` (`string`, required): The account owner of the repository
- `repo` (`string`, required): The name of the repository

Example input: `{"hook_id":1,"owner":"<owner>","repo":"<repo>"}`

## Workflows

**Proxy API call**

  **Node.js**

  ```typescript
  const result = await actions.request({
    connectionName: 'github',
    identifier: 'user_123',
    path: '/user',
    method: 'GET',
  });
  console.log(result);
  ```

  **Python**

  ```python
  result = actions.request(
      connection_name='github',
      identifier='user_123',
      path="/user",
      method="GET",
  )
  print(result)
  ```

**Execute a tool**

  **Node.js**

  ```typescript
  const result = await actions.executeTool({
    connector: 'github',
    identifier: 'user_123',
    toolName: 'github_branch_create',
    toolInput: {},
  });
  console.log(result);
  ```

  **Python**

  ```python
  result = actions.execute_tool(
      connection_name='github',
      identifier='user_123',
      tool_name='github_branch_create',
      tool_input={},
  )
  print(result)
  ```

## Related

Other ways to connect GitHub:

- [Personal access token](/agentkit/connectors/githubpat/): Scalekit connector, Access token, 217 tools
- [MCP server](/agentkit/connectors/githubmcp/): Vendor MCP, OAuth, 46 tools

Other Developer Tools connectors ([all 130](/agentkit/connectors/?category=developer-tools)):

- [Microsoft Entra ID](/agentkit/connectors/microsoftentraid/): Scalekit connector, OAuth, 82 tools
- [Datadog](/agentkit/connectors/datadog/): Scalekit connector, API key, 105 tools
- [Linear](/agentkit/connectors/linear/): Scalekit connector, OAuth, 62 tools


---

## More Scalekit documentation

| Resource | What it contains | When to use it |
|----------|-----------------|----------------|
| [/llms.txt](/llms.txt) | Structured index with routing hints per product area | Start here — find which documentation set covers your topic before loading full content |
| [/llms-full.txt](/llms-full.txt) | Complete documentation for all Scalekit products in one file | Use when you need exhaustive context across multiple products or when the topic spans several areas |
| [sitemap-0.xml](https://docs.scalekit.com/sitemap-0.xml) | Full URL list of every documentation page | Use to discover specific page URLs you can fetch for targeted, page-level answers |
