Restore a branch to a time
branches.restoreRewind a branch in place to a point in time; the URL and keys stay and the state before is kept. Destructive: needs confirm: true and the destructive scope; production additionally needs production:destructive. 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>",
"at": "<at>"
},
"name": "branches.restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | RFC 3339 time inside the history window, e.g. 2026-09-28T10:15:00Z | |
| branch | Yes | The branch to restore | |
| 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. |