Preview
previewPromote your app's preview to live (Pro; needs a successful preview deploy) or discard it: action is promote or discard. A discard stops the preview fleet and removes its trial state; live is untouched, and cleanup is always allowed, even off Pro.
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": {
"app": "<app>",
"action": "<action>"
},
"name": "preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | The app slug. | |
| wait | No | Wait for the live deploy (default true). False returns immediately; poll deploy_status. Ignored when discarding. | |
| action | Yes | `promote` fast-forwards main to the preview commit and deploys it (Pro; needs a successful preview deploy). `discard` stops the preview fleet and removes its trial state; live is untouched, and cleanup is always allowed, even off Pro. |