Create a preview
create_previewA preview environment for a branch, with its own address.
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": "create_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Reference environment. | production |
| name | No | Name of the environment (otherwise, the branch). | |
| wait | No | true: answers once done. | |
| branch | No | The Git branch. | |
| project | No | The project. | |
| ttl_hours | No | Lifetime of the preview, in hours. | |
| copy_database | No | Copy the production data (otherwise empty databases): needs data.backup on its databases. |