Create a version
create_branchCreate a named project version from sourceBranch. Set switchToBranch explicitly. Returns its version id. hidden true makes a version for one option of a question to the person: write the option on it with the writing tools' branchId, draw it with the previews' branchId, and show those previews in ask. The editor never lists or opens a hidden version, so the person keeps watching their film while you prepare the options; merge_branch puts the option they pick into their version.
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>",
"hidden": "<hidden>",
"projectId": "<projectId>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hidden | Yes | true: a hidden version for one option of a question to the person, which is never opened (switchToBranch must be false). null or false: a version the person sees in the editor. | |
| 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 |