Reset a branch
branches.resetThrow away a branch's changes and take its parent's current data, in place: the URL and keys stay. Destructive: needs confirm: true and the destructive scope. Refused on production. Scope: branches:write.
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": {
"branch": "<branch>"
},
"name": "branches.reset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | The branch to reset | |
| confirm | No | Must be true to run a destructive operation, after the user approved it | |
| project_id | No | Project id. Optional: defaults to the project created or used last in this session, or the only one. | |
| wait_seconds | No | Seconds to wait until it is live (default 60, 0 returns immediately) | |
| organization_id | No | Organization id. Optional: defaults to the token's organization, or the only one you belong to. |