Put preview live or discard it
set_live_versionAct on the waiting preview. action "put_live" (the default) puts it live. It replaces the whole live website, so first confirm with the person, in words, that they have looked at the preview (get_preview_link) and want it live. Pass the version_id from the preview publish or from list_versions; only the version marked as the waiting preview is accepted, and a preview that was replaced since is refused. It is refused too if the live website changed after the preview was made (list_websites shows waiting_preview.stale: true): discard it, then send the same change again with update_site, changes, base "live" and preview true. action "discard" removes the waiting preview and leaves the live website as it is; version_id is not needed. To bring back an earlier version instead, use rollback_site. Editors only.
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": {
"site_id": "<site_id>"
},
"name": "set_live_version"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | "put_live" (default) puts the waiting preview live; "discard" removes it without changing the live website | |
| site_id | Yes | The id of the website site | |
| version_id | No | With "put_live": the waiting preview’s version_id | |
| workspace_id | No | Optional: the workspace to act in, from list_workspaces (the connection reaches the person's personal space and every workspace they are a member of). Required on a write when the connection reaches more than one workspace. Omit to act in the personal space (for an older single-workspace connection, the one workspace it was authorized for). |