Make a preview permanent
promoteMake a preview permanent. Pass name to mint a NEW site from its files (slot-gated), or siteId to replace an EXISTING site’s content wholesale (address and settings unchanged) — exactly one of the two. The preview URL keeps working as a permanent redirect to the site. Works on live previews and on expired ones still in their grace window.
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": {
"previewId": "<previewId>"
},
"name": "promote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name for the new site, e.g. "my-thing" → my-thing.nippy.site (may come back suffixed) | |
| siteId | No | Existing site whose content the preview replaces | |
| previewId | Yes | Preview id from publish_preview or list_sites |