Get preview build status
get_previewUse this after start_build. If status is ready, send reply_template verbatim. Do not send a Stripe link, a plan, or mention a bar on the preview. If keep_polling is true or preview_url is null, call get_preview again. Do not start_build again.
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": {
"token": "<token>"
},
"name": "get_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | If false, return the current snapshot immediately (progress card). Default true. | |
| token | Yes | Token returned by start_build. Pass the same token to get_preview and get_live_site. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | Yes | ||
| token | Yes | ||
| status | Yes | ||
| message | Yes | ||
| preview_url | Yes | ||
| keep_polling | Yes | ||
| progress_pct | Yes | ||
| progress_label | Yes | ||
| reply_template | Yes |