List Project Branches Tool
list_project_branches_toolLists repository branches for a GitLab project with optional name filtering and pagination, helping you locate branches for review, release, or deployment workflows.
Instructions
List repository branches for 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_id": "<project_id>"
},
"name": "list_project_branches_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| search | No | Filter branches by name | |
| per_page | No | Results per page, max 100 (default: 20) | |
| project_id | Yes | Project ID or path |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||