export

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Export

导出

Export only when the user asks for a render, download, or final standalone deliverable. A review checkpoint normally stays as an editable ChatCut timeline. To check your own work, use
preview_timeline
for the picture and a
format:"audio"
export to hear sound; never make a full-resolution export for a self-check (see
verification
).
Use
submit_export
with the current tool schema. Confirm the target timeline, range, resolution, codec, and format from project state and user intent; do not guess a non-active timeline. Give each export a short, distinctive
name
. Record every returned
renderId
and
expectedFilename
.
Video and audio render locally by default: omit
renderMode
, and the connected ChatCut editor tab renders the timeline on the user's device. Open the project through the browser handoff in the plugin basics skill, activate the requested timeline, and keep that tab open until delivery finishes. If no capable editor is connected, resolve the reported browser or timeline issue and retry locally; there is no automatic cloud retry. Media the editor can already read needs no upload for a local export. If the user explicitly chooses cloud, follow Cloud Rendering without requiring browser or Desktop setup first.
Use
track_export
for browser and cloud export status; do not use generation/transcription
track_progress
. Pass the returned
renderId
for an accepted job. A
wait
call is a single status read; honor its check-back interval. If submission timed out or its acknowledgement is uncertain, follow Local Export Recovery before resubmitting so the same export does not start twice.
仅当用户要求渲染、下载或最终独立交付物时才执行导出。审阅检查点通常应保留为可编辑的 ChatCut 时间线。要检查自己的工作,使用
preview_timeline
查看画面,并使用
format:"audio"
导出以听取声音;切勿为自我检查进行全分辨率导出(参见
verification
)。
使用当前工具 schema 调用
submit_export
。根据项目状态和用户意图确认目标时间线、范围、分辨率、编解码器和格式;不要猜测非活动的时间线。为每次导出指定一个简短且有辨识度的
name
。记录返回的每一个
renderId
和
expectedFilename
。
视频和音频默认在本地渲染:省略
renderMode
,由已连接的 ChatCut 编辑器标签页在用户设备上渲染时间线。按照 plugin basics skill 中的浏览器交接流程打开项目,激活所请求的时间线,并保持该标签页打开,直至交付完成。如果未连接具备导出能力的编辑器,请解决工具报告的浏览器或时间线问题后重试本地导出;系统不会自动重试云端导出。编辑器已经能够读取的媒体在本地导出时无需上传。如果用户明确选择云端渲染,请遵循云端渲染流程,且无需事先完成浏览器或 Desktop 设置。
使用
track_export
跟踪浏览器和云端导出状态;不要使用生成或转录所用的
track_progress
。对于已接受的任务,传入返回的
renderId
。
wait
调用仅读取一次状态;应遵守其回查间隔。如果提交超时或无法确定服务是否已受理,请先遵循本地导出恢复流程再重新提交,以免同一次导出启动两次。

Local Export Recovery

本地导出恢复

For video/audio recovery, consume
details.exportRequest
and
details.recovery
from the tool error when present. Keep the exact project, timeline, full or partial range, format, codec, resolution, output frame rate, and existing request/render identifiers. Do not substitute the visible project or another timeline.
details.exportRequest.range
describes the entire timeline, source-timeline frames, or seconds; it is metadata, not a
submit_export
argument. Frame bounds use the timeline rate, not output
fps
. If an older server returns only an error and hint, preserve those details and read the intended scope from the original request.
Follow the reported recovery action:
restore_local
,
wait_for_capacity
,
check_existing_export
, or
resolve_export_error
. When
details.recovery.track
is present, call
details.recovery.track.tool
with
details.recovery.track.arguments
; do not replace them with an unrelated latest export or the new request's key. A legacy
details.requestId
is a correlation ID, not a
renderId
or protocol-v2
idempotencyKey
. A busy browser needs time to finish its accepted work. An uncertain acknowledgement needs the original export's outcome known before another local, Desktop, or cloud submission. Missing or unreadable media needs its reported source issue resolved; do not upload files or switch renderers without addressing that issue. These cases do not justify an automatic cloud retry.
When browser-local export is unavailable, explain the specific blocker briefly. If this host exposes ChatCut Desktop tools or the user has a suitable computer, offer the existing Desktop path as a local alternative. Cloud remains available when no usable local path exists or the user chooses it, provided the original request permits cloud rendering. Call
details.recovery.cloudFallback.tool
with
details.recovery.cloudFallback.arguments
when supplied; do not pass the descriptive
exportRequest
object as tool arguments. Follow Cloud Rendering to disclose the actual quote; a free cloud quote needs no extra confirmation and a nonzero charge needs one explicit confirmation. Honor explicit local-only, no-upload, and other original constraints; do not require Desktop installation or a failed Desktop attempt. If recovery instead reports
cloudLimitation
, explain it rather than inventing a fallback or changing the requested range, format, or quality. For an older server without recovery metadata, use the current tool schema and preserved request with
renderMode:"cloud"
only after establishing the same local-unavailability and authorization conditions. Never select cloud merely to obtain a download URL.
For a Desktop handoff, honor
details.recovery.desktopLimitation
. Desktop video supports H.264 MP4, not VP8/WebM: keep VP8 in a supported Browser/cloud path rather than silently changing its format.
details.recovery.desktopExportSettings
, when present, contains only compatible output settings, not a complete callable request. For H.264 use
videoProfile:"sdr_h264"
and
videoBitrateMode:"recommended"
so old Desktop export preferences do not change the handoff. For audio use
format:"audio",codec:"mp3"
without video fps, resolution or profile. Older servers without these fields require the same compatibility checks against the actual Desktop schema.
Use
details.recovery.desktopUrl
when returned for a compatible Desktop handoff; otherwise use Desktop's existing project library only after checking that it can produce the requested output.
details.recovery.editorUrl
opens the browser project. Hosted
submit_export(renderMode:"local")
renders in a browser; it does not become a Desktop tool. Open the source project in Desktop with an account that can access it and wait for the required media to be readable. An existing local project with the same ID may contain older or different edits: check the intended content and never overwrite that copy automatically.
If actual Desktop tools are available, call
target_project
with the preserved
projectId
and
openWindow:true
, then
read_project
to confirm the local content and target timeline. Name the same
projectId
on every Desktop read/export/track call; targeting does not replace that per-call scope. Call Desktop
export
with the intended
timelineId
, compatible output settings and an appropriate path on that computer. Preserve the video resolution and desired output fps explicitly when its schema accepts them. Desktop fps accepts 24, 25, 30, 50 and 60; omission inherits Desktop's current export preference, not necessarily the source rate. Never pass an unsupported fps such as 29.97 or silently round it to 30: retain Browser/cloud or verify a matching manual Desktop output.
For a partial range, read the actual local project
frameRate
before converting the source-frame or seconds boundaries. Desktop frame bounds use that local rate, independently of output fps; Web summaries' inclusive end needs +1 before mapping to
endFrameExclusive
. A full export omits both bounds. Check the intended content, dimensions and range before exporting; an old local copy must not become a different export just because its range was clamped.
Use Desktop
track_progress
with
target:"export"
and
exportTaskIds
set to the returned task ID. A queued
outputPath
is not a completed file. Wait for a successful terminal result and verify the file on that computer. If this host cannot call Desktop tools, provide the project-opening action and a concise export summary for the user to complete in Desktop's existing UI or Agent; do not promise remote control or file access on another device.
对于视频或音频恢复,在工具错误包含相关字段时,读取
details.exportRequest
和
details.recovery
。保留完全相同的项目、时间线、完整或部分范围、格式、编解码器、分辨率、输出帧率,以及已有的 request/render identifier。不要替换为当前可见的项目或另一条时间线。
details.exportRequest.range
描述完整时间线、源时间线帧范围或秒数;它是元数据,不是
submit_export
参数。帧边界应使用时间线帧率,而不是输出
fps
。如果旧版服务器只返回错误和提示,请保留这些详情,并从原始请求中读取预期范围。
执行工具报告的恢复操作:
restore_local
、
wait_for_capacity
、
check_existing_export
或
resolve_export_error
。当存在
details.recovery.track
时,使用
details.recovery.track.arguments
调用
details.recovery.track.tool
;不要用无关的最新导出或新请求的 key 替换它们。旧版
details.requestId
是关联 ID,而不是
renderId
或 protocol-v2 的
idempotencyKey
。繁忙的浏览器需要时间完成已接受的工作。回执不确定时,必须先确认原始导出的结果,然后才能再次提交本地、Desktop 或云端导出。缺失或无法读取的媒体需要先解决其报告的来源问题;未解决该问题前,不要上传文件或切换渲染器。这些情况均不构成自动重试云端导出的理由。
当浏览器本地导出不可用时,简要说明具体的阻塞原因。如果当前 host 暴露 ChatCut Desktop 工具,或用户有合适的计算机,请提供现有的 Desktop 路径作为本地替代方案。只要原始请求允许云端渲染,在没有可用本地路径或用户主动选择时,云端渲染仍然可用。提供
details.recovery.cloudFallback.tool
时,使用
details.recovery.cloudFallback.arguments
调用;不要把描述性的
exportRequest
对象作为工具参数。遵循云端渲染流程以披露实际报价;免费云端报价无需额外确认,非零费用需要一次明确确认。必须遵守原始请求中明确的仅本地、禁止上传及其他约束;不应要求安装 Desktop,也不要先尝试一次失败的 Desktop 导出。如果恢复流程报告
cloudLimitation
,请如实说明,不要虚构回退方案,也不要更改请求的范围、格式或质量。对于缺少恢复元数据的旧版服务器,只有在确认相同的本地不可用状态和授权条件后,才能使用当前工具 schema 与保留的请求,并设置
renderMode:"cloud"
。绝不能仅仅为了获取下载 URL 而选择云端渲染。
对于 Desktop 交接,请遵守
details.recovery.desktopLimitation
。Desktop 视频支持 H.264 MP4,不支持 VP8/WebM:请让 VP8 继续使用受支持的 Browser/cloud 路径,而不是静默更改其格式。
details.recovery.desktopExportSettings
(如果存在)仅包含兼容的输出设置,并不是完整且可直接调用的请求。对于 H.264,使用
videoProfile:"sdr_h264"
和
videoBitrateMode:"recommended"
,这样旧版 Desktop 导出偏好设置不会改变交接结果。对于音频,使用
format:"audio",codec:"mp3"
,不要设置视频 fps、分辨率或 profile。旧版服务器如果不返回这些字段,也必须根据实际 Desktop schema 执行相同的兼容性检查。
返回
details.recovery.desktopUrl
时,将其用于兼容的 Desktop 交接;否则,只有在确认 Desktop 的现有项目库能够生成所请求的输出后,才可使用该现有项目库。
details.recovery.editorUrl
会打开浏览器中的项目。托管的
submit_export(renderMode:"local")
会在浏览器中渲染;它不会变成 Desktop 工具。使用有权访问该项目的账户在 Desktop 中打开源项目,并等待所需媒体变为可读取状态。具有相同 ID 的现有本地项目可能包含较旧或不同的编辑内容:请检查预期内容,绝不要自动覆盖该副本。
如果实际提供了 Desktop 工具,使用保留的
projectId
和
openWindow:true
调用
target_project
,然后调用
read_project
以确认本地内容和目标时间线。每次 Desktop 读取、导出或跟踪调用都应使用同一个
projectId
;定位操作不能替代每次调用的范围限定。使用预期
timelineId
、兼容的输出设置以及该计算机上的适当路径调用 Desktop
export
。当其 schema 接受这些参数时,明确保留视频分辨率和期望的输出 fps。Desktop fps 支持 24、25、30、50 和 60;省略该参数会继承 Desktop 当前的导出偏好,而不一定是源帧率。绝不传入 29.97 等不受支持的 fps,也不要静默将其四舍五入为 30:请保留 Browser/cloud 路径,或验证匹配的手动 Desktop 输出。
对于部分范围,先读取实际本地项目的
frameRate
,然后再换算源帧或秒数边界。Desktop 帧边界使用该本地帧率,与输出 fps 相互独立;Web 摘要中的包含式结束位置在映射到
endFrameExclusive
前需要加 1。完整导出省略两端边界。导出前检查预期内容、尺寸和范围;旧版本地副本不得仅因其范围被钳制而变成另一项导出。
使用 Desktop
track_progress
,设置
target:"export"
,并将
exportTaskIds
设置为返回的任务 ID。处于队列中的
outputPath
不代表文件已经完成。等待成功的终态结果,并在该计算机上验证文件。如果当前 host 无法调用 Desktop 工具,请提供打开项目的操作和一份简明的导出摘要,让用户在 Desktop 的现有 UI 或 Agent 中完成;不要承诺能够远程控制或访问另一台设备上的文件。

Delivery

交付

A completed browser export (
source:"browser"
) has no
downloadUrl
: the rendering tab hands the file to that browser's downloads. Completion does not prove the file was saved, so deliver it only after finding it.
  1. Look in the user's downloads folder (usually
    ~/Downloads
    ) for
    expectedFilename
    , allowing a browser suffix such as
     (1)
    before the extension. Without
    expectedFilename
    , look for the completed
    track_export
    entry's
    name
    (the submitted name plus
    .mp4
    ,
    .webm
    , or
    .mp3
    ) and take the newest match modified after you submitted. Search for that name only; do not list or read other files there. If you cannot read files on the user's computer, give the user the file name instead.
  2. Found: give the user the path and concise render metadata. In Antigravity, use its normal supported file/link delivery and provide the local path. If the user asked for a specific folder, copy the file there.
  3. Not found: follow the result's
    deliveryGuidance
    when present, asking the user for the one step that matches the browser that rendered it, then look again:
    • Chrome: allow "Download multiple files" from the prompt in the address bar (once; the site stays allowed), then click Download again in the editor's Export queue.
    • If the actual browser shows a save dialog, ask the user to complete it, then verify the saved file.
    • Otherwise: ask where the browser saved the file.
If reading the downloads folder needs the user's approval (a macOS privacy prompt or a host permission prompt), tell them you are looking there for the exported file. If the status says the export was written to a file the user picked, that file is the delivery. Do not skip these steps to switch to cloud, and never use cloud just to get a link or to check your own work.
If the user cannot complete local delivery, follow Local Export Recovery above. Offer an available local alternative while keeping cloud directly available when the original request permits it; do not make every user try Desktop. A browser on a remote host downloads on that host, and a Desktop output path is on the Desktop computer. State the actual delivery location rather than claiming the user's device received the file.
A completed result with a
downloadUrl
(cloud video/audio, subtitles, XML): use the host's normal file/link delivery. If the user asked for a specific local path, download it there yourself. In Antigravity, provide the verified local path and a file link when supported.
Queued or running exports are not delivered. Report any warnings and their effect on the output.
已完成的浏览器导出(
source:"browser"
)没有
downloadUrl
:渲染标签页会将文件交给该浏览器的下载功能。导出完成并不能证明文件已经保存,因此找到文件后再交付。
  1. 在用户的 downloads 文件夹(通常为
    ~/Downloads
    )中查找
    expectedFilename
    ,允许扩展名前出现浏览器添加的
     (1)
    等后缀。如果没有
    expectedFilename
    ,则查找已完成的
    track_export
    条目的
    name
    (提交的名称加上
    .mp4
    、
    .webm
    或
    .mp3
    ),并选取修改时间晚于提交时间的最新匹配项。仅搜索该名称;不要列出或读取目录中的其他文件。如果无法读取用户计算机上的文件,请改为向用户提供文件名。
  2. 找到后:向用户提供文件路径和简明的渲染元数据。在 Antigravity 中,使用其常规支持的文件或链接交付方式,并提供本地路径。如果用户指定了特定文件夹,请将文件复制到那里。
  3. 未找到时:如果结果中包含
    deliveryGuidance
    ,请遵循该指引,要求用户执行与实际渲染浏览器相对应的那一步,然后再次查找:
    • Chrome:在地址栏提示中允许 "Download multiple files"(仅一次;该站点会保持允许),然后点击编辑器 Export 队列中的 Download again。
    • 如果实际浏览器显示保存对话框,请让用户完成保存,然后验证已保存的文件。
    • 否则,询问用户浏览器将文件保存在何处。
如果读取 downloads 文件夹需要用户授权,例如 macOS 隐私提示或 host 权限提示,请告知用户你正在该目录中查找导出的文件。如果状态显示导出已写入用户选择的文件,该文件就是交付物。不要跳过这些步骤而切换到云端,也不要仅为获取链接或检查自己的工作而使用云端。
如果用户无法完成本地交付,请遵循上述本地导出恢复流程。只要原始请求允许,应提供可用的本地替代方案,同时继续直接提供云端选项;不要要求每位用户都尝试 Desktop。远程 host 上的浏览器会将文件下载到该 host;Desktop 输出路径位于运行 Desktop 的计算机上。请说明实际交付位置,而不要声称文件已发送到用户的设备。
带有
downloadUrl
的已完成结果(云端视频或音频、字幕、XML):使用 host 常规的文件或链接交付方式。如果用户指定了本地路径,请自行将文件下载到该路径。在 Antigravity 中,如果功能受支持,请提供已验证的本地路径和文件链接。
排队中或运行中的导出尚未交付。报告所有警告及其对输出的影响。

Other Formats

其他格式

Subtitle and NLE XML exports use the corresponding
submit_export
format and can complete synchronously with a URL/path; report warnings about unsupported or dropped elements. An archive runs through the editor's bundle pipeline and may return no
renderId
; then check its progress in the editor rather than promising
track_export
support. For transparent Motion Graphic delivery, use the dedicated MG export tool exposed by the current manifest and track the returned render ids.
字幕和 NLE XML 导出使用
submit_export
的相应格式,并且可能同步完成并返回 URL 或路径;请报告有关不支持或被丢弃元素的警告。归档导出通过编辑器的 bundle 管线运行,可能不返回
renderId
;此时应在编辑器中检查进度,而不要承诺支持
track_export
。对于透明 Motion Graphic 交付,请使用当前 manifest 暴露的专用 MG 导出工具,并跟踪其返回的 render id。

Cloud Rendering

云端渲染

Use
renderMode:"cloud"
when the user asks for it or no usable local path exists and the original request permits it, following Local Export Recovery above. Cloud remains a supported fallback. Do not require a Desktop attempt or invent account entitlements.
When
submit_export
returns
CLOUD_EXPORT_QUOTE_REQUIRED
with
details.quote
, it has not accepted a render. Tell the user the quoted duration, free allowance and
estimatedCredits
before starting. Retry the same export with
cloudQuoteId
set to that quote's
id
. A zero-credit quote starts directly without another confirmation. For a nonzero charge, obtain one explicit confirmation of that quoted amount, then set
confirmCloudCharge:true
; choosing cloud alone does not approve an unknown charge. Use the account policy returned by the server rather than assuming a free allowance or changing old benefits.
Keep the same project, timeline, range, format and output settings for that quote. If it expires or the service requires a new quote, preserve the request and omit the stale
cloudQuoteId
to request a fresh quote. A larger charge needs new consent. If submission was accepted or uncertain, check the original job before retrying; never obtain a new quote to duplicate an in-progress export.
If cloud rendering is blocked by media that is not remotely readable, use
asset-import
when the user permits upload, or report the blocker. Do not flatten or substitute the edit, upload sources, or switch a local export to cloud merely to obtain a download URL.
当用户要求云端渲染,或没有可用本地路径且原始请求允许时,使用
renderMode:"cloud"
,并遵循上述本地导出恢复流程。云端渲染仍是受支持的回退方案。不要要求先尝试 Desktop,也不要编造账户权益。
当
submit_export
返回
CLOUD_EXPORT_QUOTE_REQUIRED
且包含
details.quote
时,说明尚未接受渲染请求。开始前告知用户报价时长、免费额度和
estimatedCredits
。将该报价的
id
设置给
cloudQuoteId
,以重试同一次导出。零积分报价可直接开始,无需再次确认。对于非零费用,必须获得对该报价金额的一次明确确认,然后设置
confirmCloudCharge:true
;仅选择云端并不等于批准未知费用。使用服务器返回的账户政策,不要假设免费额度或更改旧权益。
对该报价保持相同的项目、时间线、范围、格式和输出设置。如果报价过期或服务要求新报价,请保留请求,并省略失效的
cloudQuoteId
以请求新报价。费用增加需要重新征得同意。如果提交已被接受或状态不确定,重试前先检查原始任务;绝不能通过获取新报价来重复正在进行中的导出。
如果云端渲染因无法远程读取的媒体而受阻,在用户允许上传时使用
asset-import
,否则报告阻塞原因。不要扁平化或替换编辑内容,不要上传源文件,也不要仅为获取下载 URL 而将本地导出切换到云端。