create_branch
Create a new branch in PlayCanvas and switch the editor to it. Fork from the current branch or optional source branch/checkpoint to isolate feature work and return the new branch's VCS status.
Instructions
Create a new branch (scope a feature on its own branch) and switch the editor to it. Branches from the current branch by default. This RELOADS the editor; the tool waits for it to reconnect and returns the resulting vcs_status on the new branch. Name must be unique in the project and at most 1000 characters. When NOT to use: to switch to an existing branch (use switch_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": {
"name": "<name>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the new branch | |
| sourceBranchId | No | Branch to fork from (defaults to the current branch) | |
| sourceCheckpointId | No | Checkpoint on the source branch to fork from (defaults to its latest) |