Start site database export
start_site_database_exportStart an export of the production database of a site that SHIP made with Start from scratch: one SQL file with the schema and every row. The call waits up to about 15 seconds. While the status is running, get_site_database_export reads it until it is ready, with pollAfterSeconds between two reads. One export runs at a time for each site. A start within ten minutes of a ready export answers that export, and a site gets 6 new exports in each hour. The file is not part of the result. When the status is ready, download it with ship sites export-db <SITE_ID> --export <EXPORT_ID>, or from GET /v1/sites/{siteId}/database/exports/{exportId}/file. The file holds every row of the site, the email addresses of its waitlist too: the call needs the site-database:export scope and an owner or an admin of the workspace.
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": {
"siteId": "<siteId>"
},
"name": "start_site_database_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| siteId | Yes | Site id from list_sites |