Create a version
create_branchCreate a named project version from sourceBranch. Set switchToBranch explicitly. Returns its version id.
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": {
"branchName": "<branchName>",
"sourceBranch": "<sourceBranch>",
"switchToBranch": "<switchToBranch>",
"projectId": "<projectId>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| branchName | Yes | ||
| sourceBranch | Yes | ||
| switchToBranch | Yes |