Git branches
git_branchesLists Git branches in a repository, optionally including remote branches, and returns the current branch plus branch names and last commits as structured data.
Instructions
List git branches. Returns the current branch and [name, lastCommit] pairs; a remote branch's name starts with remotes/.
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": "git_branches"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Repository path | |
| remote | No | Include remote branches |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| current | Yes | ||
| branches | Yes | ||
| retained | No |