git_branch
List and inspect local Git branches to view available branches or check details before switching or merging.
Instructions
List or inspect branches in the local repository.
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_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Use git branch --all. | |
| cwd | No | Optional local working directory or repository path. |