create_branch
Create a new branch in a Git repository to isolate code changes. Specify repository, branch name, and source reference to start development work separately.
Instructions
Create a new branch in the repository. Use this before making code changes to work on a separate branch.
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": {
"repo": "<repo>",
"name": "<name>",
"ref": "<ref>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Repository identifier (GitLab: "group/project" or ID, GitHub: "owner/repo") | |
| name | Yes | Name for the new branch | |
| ref | Yes | Source branch/commit/tag to create from |