Git Branch Tools
git_branchesManage Git branches by listing, creating, deleting, renaming, checking out, setting upstreams, or viewing recent branches in a local repository.
Instructions
Branch tool. Use action=list|create|delete|rename|checkout|set_upstream|recent for branch workflows.
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 |
|---|---|---|---|
| all | No | ||
| ref | No | ||
| name | No | ||
| count | No | ||
| force | No | ||
| action | No | list | |
| branch | No | ||
| create | No | ||
| from_ref | No | ||
| new_name | No | ||
| old_name | No | ||
| upstream | No | ||
| repo_path | No | Absolute path to the local Git repository. If omitted, falls back to the server default set via the GIT_REPO_PATH environment variable or --repo-path CLI argument. | |
| response_format | No | Output format for the response. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| branches | No |