Prepare Draft
prepare_draftCreates a private browser-owned component draft and preview URL without changing the live workspace. Drafts expire after 15 minutes or browser reload. Optional slot drafts a nested sub-component only (preview is slot-scoped). Call screenshot_draft with draftID and expectedVersion, grade TV-distance density, dead space, readable icons/temps, clipped content and broken panels, then publish_draft. Never put previewURL in chat.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| slot | No | ||
| state | No | ||
| title | Yes | ||
| action | Yes | ||
| format | Yes | ||
| source | Yes | React TSX or full HTML. Use a sized nova-video element: YouTube/Vimeo embed URLs play inline, other service URLs are unsupported; do not create launch buttons or placeholders; see /agent media guidance. Arbitrary nested frames stay blocked. Do not author clickable links or external-navigation buttons; keep interactions within the canvas and share external URLs in the agent conversation. | |
| componentID | No | ||
| operationID | Yes | ||
| controlToken | Yes | ||
| expectedRevision | Yes |