List repository branches
list_branchesList or search branches in a GitLab project by name or regex. Get paginated branch results to locate branches for merge requests and CI workflows.
Instructions
List or search branches in a GitLab project.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>"
},
"name": "list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| regex | No | ||
| search | No | ||
| project | Yes | GitLab project ID or full path such as group/project. | |
| per_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | GitLab response normalized for model use. |