git_branch
List, create, or switch git branches to prepare a feature branch before making changes, since commits to protected branches are refused.
Instructions
List branches, or create / switch to one. Creating a feature branch is the normal first step before making changes, since commits to protected branches are refused.
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 |
|---|---|---|---|
| from | No | Base ref for a new branch. Default: the current HEAD. | |
| name | No | Branch to create or switch to. Omit to list branches. | |
| create | No | Create the branch. Default false (switch to an existing one). | |
| workspace | No | Workspace alias. Defaults to the active workspace. |