List repository branches
list_repository_branchesList the branches of a GitHub repository accessible to an installation: pass the numeric installationId from list_github_installations, owner and repo. Lists at most the first 1,000 branches in alphabetical order, plus the default branch (flagged) when it sorts later. For a GitLab repository pass connectionId (list_gitlab_connections) and repositoryId (list_gitlab_repositories) instead: every branch, the default flagged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_repository_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Required for a GitHub repository. | |
| owner | No | Required for a GitHub repository. | |
| connectionId | No | A GitLab connection of the organisation. Required for a GitLab repository. | |
| repositoryId | No | GitLab’s numeric project id. Required for a GitLab repository. | |
| installationId | No | GitHub App installation id. Required for a GitHub repository. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branches | Yes |