list_branches
List or search branches in a CERN GitLab repository and get branch names plus commit metadata for use as a ref in 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.
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 URL-encoded path (e.g. 'atlas/athena') | |
| per_page | No | Number of branches to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||