Create branch
create_branchCreate one branch of a file: a copy to try a big change without touching the main file. It is edited like any file (its own fileId); the user reviews it and merges it back from the app (Branch menu → Review & merge), which applies only what the branch changed. Branches are listed under their file; update_branch brings the main file's later changes in, and request_review tells the person the branch is ready.
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": {
"fileId": "<fileId>",
"name": "<name>"
},
"name": "create_branch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | What the branch tries: "Dark header". | |
| fileId | Yes | The main file (not a branch). |