git_branch
Creates, manages, merges, rebases, stashes, tags, and safely deletes Git branches, using confirmation gating for destructive branch removal.
Instructions
Git branch operations — branch lifecycle, merge, rebase, stash, tag.
For core operations (status, log, commit, push) use git_core. For admin operations (remote, reset, clean, submodule) use git_admin. branch_delete needs confirm=True + confirm_token (red-shelf gate).
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": {
"operation": "<operation>"
},
"name": "git_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| branch | No | ||
| confirm | No | ||
| message | No | ||
| tag_name | No | ||
| operation | Yes | ||
| repo_path | No | ||
| stash_index | No | ||
| tag_message | No | ||
| confirm_token | No | ||
| source_branch | No | ||
| stash_message | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||