create_branch
Create a new branch by copying an existing branch. Specify source and new branch names without 'refs/heads/' prefix.
Instructions
Create a new branch from an existing one
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": {
"repositoryId": "<repositoryId>",
"sourceBranch": "<sourceBranch>",
"newBranch": "<newBranch>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| newBranch | Yes | Name of the new branch to create (without "refs/heads/", e.g., "feature/my-branch") | |
| projectId | No | The ID or name of the project (Default: MyProject) | |
| repositoryId | Yes | The ID or name of the repository | |
| sourceBranch | Yes | Name of the branch to copy from (without "refs/heads/", e.g., "master") | |
| organizationId | No | The ID or name of the organization (Default: mycompany) |