git_branch
Manage Git branches by listing existing ones, creating new branches, or switching between branches to organize code development workflows.
Instructions
List, create, or switch branches
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": {
"action": "<action>"
},
"name": "git_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action to perform | |
| name | No | Branch name (for create/switch) | |
| cwd | No | Repository path |