list_branches
Retrieve and filter branch listings from Git repositories to manage code versions and track development work across projects.
Instructions
List branches in a repository. Optionally search for specific branches.
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": {
"repo": "<repo>"
},
"name": "list_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (GitLab: "group/project" or ID, GitHub: "owner/repo") | |
| search | No | Search term to filter branches | |
| page | No | Page number (default: 1) | |
| per_page | No | Items per page (default: 20, max: 100) |