Export
Export only when the user asks for a finished file. A review checkpoint stays as an editable ChatCut timeline; check your work with preview_timeline instead of exporting.
Video and audio can render in the cloud or locally in a ChatCut browser. Name projectId and timelineId explicitly on every export, and do not guess which timeline the user means when it is not the active one. Check every returned renderId with track_export, one status read per call, waiting checkBackAfterSeconds between reads.
Cloud export
ChatCut renders on its servers (up to 1080p; 4K needs a local export), so no browser has to stay open. The project's media must already be in ChatCut: files sent through the ChatCut upload page are; for files you imported with the upload helper, wait until track_progress with target:"upload" reports them uploaded.
- The first call returns
CLOUD_EXPORT_QUOTE_REQUIREDwithdetails.quoteand starts nothing. Tell the user its duration, free allowance and credits. - A free quote (
requiresConfirmation:false) can be retried right away withcloudQuoteIdset to the quote'sid. A credit charge needs the user to confirm that exact amount first; then retry withcloudQuoteIdandconfirmCloudCharge:true. If the account cannot cover it, follow the billing recovery the error returns. Keep the same project, timeline, range and settings; an expired quote needs a fresh one, and a larger charge needs new consent. - When
track_exportreports it complete, fetchdownloadUrlinto your workspace withcurl -fL -o "<file name>" "<downloadUrl>", check the file isoutputSizeBytesbytes, and send the file in this chat. If the download fails, calltrack_exportonce more and retry with its link; if you cannot attach the file, give the userdownloadUrl.
Local export
The timeline renders in a ChatCut editor tab in your browser on Grok Bot's cloud computer. That browser must be signed in to the user's ChatCut account and connected as the renderer.
- Before exporting, open the project's
browserHandoff.urlonce in your browser. It signs that browser in and makes it the connected ChatCut renderer. Never show that URL to the user. If it has expired, callget_editor_urlfor a fresh one. If there is no handoff URL and no browser is connected, ask the user to open the editor link and sign in. - Confirm the requested timeline in that tab; a server-side switch does not prove the open tab switched. Keep the tab open until the export completes.
- With
delivery:"host", the browser uploads the finished file instead of downloading it. Whentrack_exportshowsdelivery.status:"ready", fetchdelivery.downloadUrlthe same way, check the file isdelivery.sizeBytesbytes, and send the file in this chat;uploadingorqueuedis still in progress. If you cannot attach the file, give the userdelivery.downloadUrland say it works untildelivery.retainedUntil. - Without host delivery, the browser downloads the file onto Grok Bot's cloud computer, not the user's device, and there is no link to send. If the user needs the file in this chat, offer a cloud export with its quote.
If a call fails
Follow the error's details.exportRequest and details.recovery. Busy capacity waits for existing jobs; an uncertain acknowledgement needs the original export checked with track_export before any retry; missing media needs its source uploaded or restored. Never duplicate a job. If the browser cannot render locally, explain the blocker and offer cloud with its quote rather than switching on your own.
Subtitles
For subtitle export, first use manage_timelines to confirm the agent's active
timeline. If it differs from the requested timeline, use its action:"switch"
with that target and read back the active state before submitting. The hosted
subtitle path tested on 2026-10-16 reads captions from the agent's active timeline
even when submit_export.timelineId names another timeline; switching only the
browser tab does not resolve this. This is a compatibility guard, not a backend
fix. Keep the explicit export timeline ID and check the actual subtitle file's
text and timing before delivery. If captions are readable but export still
reports none after alignment, report the failure instead of regenerating captions
or constructing a replacement SRT and calling it a successful tool export.
NLE XML and Motion Graphics
For NLE XML, report warnings about unsupported or dropped elements. fcp_xml is
legacy xmeml, not modern .fcpxml; do not promise a lossless project round
trip or target-NLE compatibility without testing it. For transparent Motion
Graphic delivery, use the dedicated MG export tool exposed by the current
manifest and track the returned render ids.