list_branches
List or search branches in a CERN GitLab repository to retrieve branch names and commit metadata, so you can pick a branch and pass it as the ref argument to content and code-search tools.
Instructions
List or search branches in a CERN GitLab repository. Returns branch names and commit metadata so a branch can be selected and passed as the 'ref' argument to repository content and code-search tools.
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 | Page number to retrieve | |
| search | No | Optional branch-name filter. GitLab supports partial matches and anchors such as '^main$' for an exact match. | |
| project | Yes | Project identifier — either a numeric ID (e.g. '12345') or a namespace/project path (e.g. 'atlas/athena') | |
| per_page | No | Number of branches to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||