Update Draft
update_draftReplaces a private draft at its expected version and issues a new version and preview URL. Previous preview links become invalid; original expiry is unchanged. Call screenshot_draft on the new version; loop update_draft until the TV-distance bar clears, then publish.
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": {
"operationID": "<operationID>",
"expectedRevision": "<expectedRevision>",
"title": "<title>",
"format": "<format>",
"source": "<source>",
"draftID": "<draftID>",
"expectedVersion": "<expectedVersion>",
"controlToken": "<controlToken>"
},
"name": "update_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| state | No | ||
| title | 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. | |
| draftID | Yes | ||
| operationID | Yes | ||
| controlToken | Yes | ||
| expectedVersion | Yes | ||
| expectedRevision | Yes |