Deploy an ungated preview
preview_refDeploy a COMMITTED revision as an UNGATED, throwaway PREVIEW on its OWN subdomain (a validation copy, safe by isolation: NOT test-gated, NEVER charged, NEVER a permanent name claim; authorized by owning the base app). Auto-expires (TTL) and is swept. Preview un-green code on purpose before you cut a release. ASYNCHRONOUS: it compiles your source, which takes minutes. Returns {BuildStarted:{build_id,app}}; poll build_status, which answers {PreviewDeployed:{app,preview_app,host,expires_at_ms,commit}} once it is live. Do NOT resubmit while it is building.
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>"
},
"name": "preview_ref"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| token | No | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused | |
| instances | No | ||
| reference | No |