Create a branch
branches.createFork a branch from production (or from) for one task, agent or pull request: a copy-on-write database with its own URL and keys. Expires after ttl_hours. Returns its URL and publishable key once live. Scope: branches:write.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "branches.create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | What to copy from the parent (default snapshot: schema and data, copy-on-write) | |
| from | No | Parent branch, default production | |
| name | No | Branch id, e.g. `add-comments`. Optional: generated. | |
| from_time | No | Optional RFC 3339 time, e.g. 2026-09-28T10:15:00Z: the branch holds its parent as it was then (inside the project's history window, shown on the Branches page) | |
| ttl_hours | No | Hours until it expires (default 24) | |
| 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. |