list_branches
Lists branches in a GitLab project, with name search and pagination to find specific branches.
Instructions
List branches in project with search filter. For one known resource, use the matching get tool.
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_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1) | |
| search | No | Search term to filter branches by name | |
| summary | No | If true, return only high-signal fields (id, iid, title, state, web_url, …). Default false keeps the full GitLab JSON. | |
| jmespath | No | Optional JMESPath expression filtering the JSON result before return. | |
| per_page | No | Items per page (max 100, default 20) | |
| project_id | Yes | Project ID or complete URL-encoded path to project |