git_branch_tool
Lists Git branches in a repository, filtered by type (local, remote, or all) and optional commit containment.
Instructions
Lists Git branches (local, remote, or all).
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_path": "<repo_path>"
},
"name": "git_branch_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | Path to the Git repository | |
| branch_type | No | Which branches to list: 'local', 'remote', or 'all' | local |
| contains | No | Only show branches that contain this commit SHA | |
| not_contains | No | Only show branches that do NOT contain this commit SHA |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |