Create or update temporary live preview (no login required)
preview_draftCreates or updates a temporary 24-hour live preview on ohmyho.st without signing in (including a small unclaimed Postgres database up to 5 tables and 5 MiB when ohmyhost.yaml declares database migrations; exceeding that returns guest_database_limit_exceeded with claim_url to sign up and unlock full storage). Pass files to build and preview an app immediately (omitting package.json starts from the vite-react template). Returns preview_url, claim_url (to sign in and save permanently — archived to R2 after 24 hours and claimable for 30 days), draft_id and edit_token. Pass draft_id and edit_token on follow-up edits to update the same live preview in place.
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": {
"files": "<files>"
},
"name": "preview_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| files | Yes | ||
| message | No | ||
| draft_id | No | ||
| edit_token | No |