create_preview
Prepare a new temporary static preview. Supply exactly one of small files or ZIP archive_base64. No backend/build. Requires explicit consent; returns an approval link, not a published URL. User must confirm in their browser.
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": {
"accept_terms": "<accept_terms>"
},
"name": "create_preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | One input choice: 1-500 already-built static files, at most 1 MiB decoded in total. Include index.html at the root and all needed assets. Do not also send archive_base64 or archive. For larger output use a ZIP. | |
| accept_terms | Yes | Set true only after the user explicitly agrees to the current terms and public temporary preview limits. Not inferred from a request to generate a site. Preparation is not publication; the user must also personally confirm the approval URL in their browser within 2 hours. | |
| archive_base64 | No | One input choice: actual ZIP bytes encoded as canonical standard base64, without data: prefix. At most 50 MiB (52,428,800 bytes) of decoded ZIP and 50 MiB extracted content; at most 25 MiB per file. index.html at root. No nested archives or server code. Do not also send files or archive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | ||
| message | Yes | Next user action; preparation has not published or deleted anything. | |
| preview_id | Yes | AIfra preview identifier; never a management key. | |
| approval_url | Yes | Return to the user to open personally. This is not the published preview URL. Never approve it on their behalf. | |
| operation_id | Yes | Prepared operation identifier. | |
| approval_expires_at | Yes | Preparation expires after 2 hours. The 48-hour preview starts only after confirmation. |