Get branches
gitlab_get_branchesRetrieve branches in a GitLab project to inspect available refs, branch names, and pagination details. Use project_id and optional filters to list branches for review or automation.
Instructions
Retrieve information about branches in a project.
Args: **kwargs: Additional keyword arguments to initialize the BranchModel.
Returns: Response: The response object containing a list of Branch models.
Raises: ParameterError: If the provided parameters are invalid based on the BranchModel.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "gitlab_get_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| page | No | ||
| branch | No | ||
| per_page | No | ||
| max_pages | No | ||
| project_id | No |