Show Site Preview
show_site_previewShow the user's website inside the chat as a live preview panel (on AI apps that support interactive panels; elsewhere it returns a preview link to share). Renders the CURRENT DRAFT — call it when the user asks to see their site, or once after finishing a batch of edits so they can see the result; every edit tool already returns a fresh preview_url, so prefer ONE preview call after several edits over one per edit. Refreshing re-renders the draft preview (the same staging refresh every edit performs). The response includes the page list and publish readiness: when publishing isn't included on the site's plan, can_publish is false and the response carries a link to relay (its shape varies by host) — share it if the user wants to go live (don't retry publish_site).
Annotations: read-only=false, destructive=false, idempotent=true, open-world=false. Why: A write, not a read: it regenerates the draft's staging preview so the panel can show it. Not destructive — only a derived copy is rewritten, no user content changes, nothing goes live. Idempotent; closed-world.
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": "show_site_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site_id | Yes | The site to preview |