chatcut-plugin-basics-claude

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ChatCut Plugin Basics (Claude Code)

ChatCut 插件基础(Claude Code)

Choose the ChatCut connection

选择 ChatCut 连接方式

Honor a user-selected Skill/workflow and its declared execution route first. For a supplied Skill ID or copied Skill command, resolve that Skill before choosing a connection; the Desktop defaults below do not replace the selected workflow or an explicitly chosen Web project.
For “install ChatCut” / 安装 ChatCut, default to Desktop: fetch the complete official guide with
curl -fsSL https://chatcut.io/desktop
(
curl.exe
on Windows) and follow it. It uses the official macOS/Windows installer, with no Node.js/npm prerequisite; run it with this plugin's install source:
curl -fsSL https://chatcut.io/install.sh | CHATCUT_INSTALL_SOURCE=official_plugin sh
on macOS, or
$env:CHATCUT_INSTALL_SOURCE='official_plugin'; irm https://chatcut.io/install.ps1 | iex
in Windows PowerShell. Do not manually remove hosted plugins, credentials or projects. Desktop manages conflicts during connection setup and may disable or replace this agent’s hosted connection; Web projects remain separate. First confirm that commands run on the intended macOS or Windows computer with a graphical desktop. Linux and remote agents without access to that computer cannot install Desktop there; carry the request to a local agent on the supported computer.
For recreating a source video (recreate, clone, remake, 复刻视频, 做同款, replace a person or product while retaining the motion), use local
chatcut_desktop
tools. If they are available, verify
get_active_project
, load Desktop's bundled
video-gen
Skill and inspect
submit_video_remake
; continue with the user's materials and confirm duration/credits before generation. A null project is a valid connection. No separate marketplace Skill is required. If the user means editing their own footage to match a reference’s cuts, captions or packaging, use the matching editing Skill instead. Do not apply the generative remake route to voice cloning or ordinary edits to an existing Web project.
If Desktop is missing and the user has only requested a remake, explain once that it needs ChatCut Desktop and membership, and offer to install it. On agreement follow the same Desktop guide, retaining all materials and instructions. If a web tool cannot fetch the full guide, use curl. If the guide is unreachable too, run the official installer commands above, preserving OS trust checks. Linux/headless environments need a supported computer. Let the user sign in; Desktop connects supported agents automatically. If this conversation cannot see the new tools, provide a self-contained continuation prompt for a new conversation, then verify a real tool read there. Installation success is not evidence that this conversation has loaded the tools.
The rest of this Skill applies to existing Web projects or when the user explicitly chooses the hosted Web plugin. Its hosted-only setup rules do not apply to Desktop installation or remake requests above.
优先遵循用户所选 Skill/工作流及其声明的执行路径。对于提供的 Skill ID 或复制的 Skill 命令,先解析该 Skill,再选择连接方式;下面的 Desktop 默认规则不会取代所选工作流或用户明确选择的 Web 项目。
对于“安装 ChatCut”/安装 ChatCut,默认使用 Desktop:通过
curl -fsSL https://chatcut.io/desktop
获取完整的官方指南(Windows 上使用
curl.exe
)并遵循指南。它使用官方 macOS/Windows 安装器,不要求预先安装 Node.js/npm;使用本插件的安装源运行:macOS 上执行
curl -fsSL https://chatcut.io/install.sh | CHATCUT_INSTALL_SOURCE=official_plugin sh
,或在 Windows PowerShell 中执行
$env:CHATCUT_INSTALL_SOURCE='official_plugin'; irm https://chatcut.io/install.ps1 | iex
。不要手动移除托管插件、凭据或项目。Desktop 会在连接配置期间管理冲突,并且可能禁用或替换此 Agent 的托管连接;Web 项目则保持独立。首先确认命令将在预期的 macOS 或 Windows 计算机上运行,且该计算机具有图形桌面。Linux 以及无法访问该计算机的远程 Agent 无法在那里安装 Desktop;应将请求转交给受支持计算机上的本地 Agent。
在复刻源视频时(recreate, clone, remake, 复刻视频, 做同款,或在保留动作的同时替换人物或产品),使用本地
chatcut_desktop
工具。如果这些工具可用,请验证
get_active_project
,加载 Desktop 自带的
video-gen
Skill,并检查
submit_video_remake
;随后使用用户的素材继续操作,并在生成前确认时长/额度。null 项目也是有效的连接。不需要单独使用 marketplace Skill。如果用户的意思是编辑自有素材,使其剪辑方式、字幕或包装与参考视频一致,请改用相应的编辑 Skill。不要将生成式复刻流程用于声音克隆,或对已有 Web 项目进行普通编辑。
如果缺少 Desktop,且用户仅请求复刻,则说明一次该操作需要 ChatCut Desktop 和会员资格,并主动提出安装建议。用户同意后,遵循相同的 Desktop 指南,并保留所有素材和说明。如果 Web 工具无法获取完整指南,请使用 curl。如果指南也无法访问,则运行上述官方安装器命令,并保留操作系统的信任检查。Linux/无界面环境需要一台受支持的计算机。让用户登录;Desktop 会自动连接受支持的 Agent。如果当前对话无法看到新工具,请为新对话提供一段自包含的续接提示词,然后在该对话中验证一次真实的工具读取。安装成功并不能证明当前对话已加载这些工具。
本 Skill 的其余部分适用于已有 Web 项目,或用户明确选择托管版 Web 插件的情况。其仅限托管版的配置规则不适用于上述 Desktop 安装或复刻请求。

Purpose

用途

Use this as the base operating context whenever Claude Code works with a ChatCut project through the ChatCut plugin.
Surface scope of the sections below: they cover the hosted ChatCut plugin (
plugin:chatcut:chatcut
) only. When the conversation uses ChatCut Desktop (
chatcut_desktop*
servers), follow the desktop server's own instructions and skip this skill unless the user explicitly chooses the plugin/web surface — desktop media is registered locally (no uploads) and delivery happens in the ChatCut Desktop window, not a browser.
Host scope: this is the Claude Code edition. In Codex, use the
chatcut-plugin-basics
skill instead of this one.
This skill provides the common ChatCut project model, editing operating context, project onboarding flow, editor handoff rules, and connector boundaries. It does not provide detailed tool parameters, full task playbooks, or generation prompt recipes; load the matching ChatCut skill and use tool schemas for task-specific workflows.
每当 Claude Code 通过 ChatCut 插件处理 ChatCut 项目时,都将本 Skill 作为基础运行上下文。
本 Skill 各章节的适用范围:它们仅涵盖托管版 ChatCut 插件(
plugin:chatcut:chatcut
)。当对话使用 ChatCut Desktop(
chatcut_desktop*
服务)时,遵循 Desktop 服务自身的说明,并跳过本 Skill,除非用户明确选择插件/Web 界面——Desktop 媒体在本地注册(不上传),交付在 ChatCut Desktop 窗口中完成,而不是在浏览器中。
宿主范围:此版本面向 Claude Code。在 Codex 中,改用
chatcut-plugin-basics
Skill。
本 Skill 提供常见的 ChatCut 项目模型、编辑运行上下文、项目接入流程、编辑器交接规则和连接器边界。它不提供详细工具参数、完整任务手册或生成提示词配方;应加载对应的 ChatCut Skill,并使用工具 schema 处理具体任务工作流。

MCP setup and authentication

MCP 配置与身份验证

For hosted Web tasks, check the hosted ChatCut MCP registration and authentication first. A missing or unauthenticated hosted server is not evidence that Desktop needs to be installed.
ChatCut tools are served through the configured Hosted MCP server:
chatcut
for direct registration or
plugin:chatcut:chatcut
for an existing plugin-provided registration. Resolve tools from your visible tool list by the ChatCut tool name (
read_project
,
edit_item
, ...), using the registered server's namespace. Treat the active MCP manifest as the runtime contract.
If the tools are available and authenticated, continue normal work without reinstalling or starting a new session. Otherwise, check registration with
claude mcp get chatcut
and
claude mcp get plugin:chatcut:chatcut
(or inspect
/mcp
when the CLI is unavailable). If either exists, use that server and do not create a duplicate. Follow the matching path:
If an existing connection, OAuth attempt, or hosted tool request fails, keep the original error and identify the failing step before retrying login or changing settings. An initial sign-in requirement by itself is expected, not a confirmed connection defect.
  1. Server not registered: Offer to register the Hosted MCP server directly at user scope. Do not install, reinstall, repair, or enable a plugin to obtain the server:
sh
claude mcp add-json --scope user chatcut '{"type":"http","url":"https://api.chatcut.io/api/external-mcp/mcp","oauth_resource":"https://api.chatcut.io/api/external-mcp/mcp","headers":{"x-chatcut-mcp-client":"claude_code","x-chatcut-mcp-surface":"embedded-preview"}}'
Preserve other configuration. If an available ChatCut MCP definition specifies a different URL, OAuth resource, or headers, use those values instead of the example. Never retarget an existing registration or store auth tokens in configuration. Without the CLI, add the same HTTP server and headers at user scope through the host's MCP settings if supported. Have the user approve the user-scoped MCP server if prompted, verify registration with
claude mcp get chatcut
, then complete authentication below.
  1. Server registered but authentication required: Offer to run Claude Code's
    claude mcp login
    for the registered server and have the user complete the browser sign-in. It needs a terminal, so start it in the background inside a pseudo-terminal, using the line for this computer (for a direct registration, replace
    plugin:chatcut:chatcut
    with
    chatcut
    ):
text
undefined
对于托管版 Web 任务,首先检查托管版 ChatCut MCP 的注册和身份验证情况。托管服务未注册或未通过身份验证,并不能说明需要安装 Desktop。
ChatCut 工具通过已配置的 Hosted MCP Server 提供:
chatcut
表示直接注册,
plugin:chatcut:chatcut
表示插件提供的现有注册。通过注册服务器的 MCP 命名空间,使用 ChatCut 工具名称(如
read_project
、
edit_item
等)解析可见工具列表中的工具。将当前有效的 MCP manifest 视为运行时契约。
如果工具已可用且通过身份验证,则无需重新安装或开启新会话,继续正常工作即可。否则,使用
claude mcp get chatcut
和
claude mcp get plugin:chatcut:chatcut
检查注册情况(CLI 不可用时检查
/mcp
)。如果其中任一项存在,使用该服务器,不要创建重复连接。如果现有连接、OAuth 尝试或托管工具请求失败,保留原始错误,并确定失败步骤,然后重试登录或更改设置。
仅要求首次登录本身是预期行为,并不表示已确认连接存在故障。
  1. 服务器未注册: 提议在用户范围内直接注册 Hosted MCP Server。不要为了获取该服务器而安装、重新安装、修复或启用插件:
sh
claude mcp add-json --scope user chatcut '{"type":"http","url":"https://api.chatcut.io/api/external-mcp/mcp","oauth_resource":"https://api.chatcut.io/api/external-mcp/mcp","headers":{"x-chatcut-mcp-client":"claude_code","x-chatcut-mcp-surface":"embedded-preview"}}'
保留其他配置。如果可用的 ChatCut MCP 定义指定了不同的 URL、OAuth resource 或 headers,请使用这些值代替示例。绝不重定向已有注册,也不要在配置中存储 auth token。如果没有 CLI,且宿主支持,则通过宿主的 MCP 设置在用户范围内添加相同的 HTTP server 和 headers。如果出现提示,请让用户批准用户范围的 MCP server;使用
claude mcp get chatcut
验证注册,然后完成下述身份验证。
  1. 服务器已注册但需要身份验证: 提议为已注册服务器运行 Claude Code 的
    claude mcp login
    ,并让用户完成浏览器登录。该操作需要终端,因此应在伪终端中以后台方式启动,使用本机对应命令行(直接注册时,将
    plugin:chatcut:chatcut
    替换为
    chatcut
    ):
text
undefined

macOS

macOS

script -qF /tmp/chatcut-login.log claude mcp login plugin:chatcut:chatcut < /dev/null > /dev/null 2>&1 &
script -qF /tmp/chatcut-login.log claude mcp login plugin:chatcut:chatcut < /dev/null > /dev/null 2>&1 &

Linux

Linux

script -qfc "claude mcp login plugin:chatcut:chatcut" /tmp/chatcut-login.log > /dev/null 2>&1 &
script -qfc "claude mcp login plugin:chatcut:chatcut" /tmp/chatcut-login.log > /dev/null 2>&1 &

Windows PowerShell

Windows PowerShell

Start-Process cmd -ArgumentList '/c','claude mcp login plugin:chatcut:chatcut > %TEMP%\chatcut-login.log 2>&1'

Immediately read and poll the log (`$env:TEMP\chatcut-login.log` on Windows). Claude Code opens the ChatCut authorization page; if the browser does not open, open the authorization URL from the log for the user. Sign-in succeeded when the log shows `Authenticated with "plugin:chatcut:chatcut"` (or `"chatcut"`); `Connected` alone does not prove it. Never run concurrent login attempts. If the CLI is unavailable or has no `claude mcp login` (older than 2.1.210), have the user open `/mcp`, select the registered ChatCut server, and choose **Authenticate** instead. An unauthenticated server can return 401 and leave the session with no tools; reinstalling does not fix that. Do not assume every missing-tool case is an auth failure: if authentication succeeds but tools remain absent, start a new session and check the server's reported connection error.

Explain whether registration, authentication, or connection failed and provide the matching concrete step, rather than only saying ChatCut is unavailable or asking the user to reconnect. Directly registering the Hosted MCP server above is allowed; do not install plugins or bootstrap unrelated local MCP surfaces or Desktop integrations from this skill.
Start-Process cmd -ArgumentList '/c','claude mcp login plugin:chatcut:chatcut > %TEMP%\chatcut-login.log 2>&1'

立即读取并轮询日志(Windows 上为 `$env:TEMP\chatcut-login.log`)。Claude Code 会打开 ChatCut 授权页面;如果浏览器未自动打开,请从日志中打开授权 URL 供用户使用。日志显示 `Authenticated with "plugin:chatcut:chatcut"`(或 `"chatcut"`)时,表示登录成功;仅有 `Connected` 不能证明登录成功。绝不同时运行多个登录尝试。如果 CLI 不可用,或没有 `claude mcp login`(版本低于 2.1.210),让用户打开 `/mcp`,选择已注册的 ChatCut 服务器,然后选择 **Authenticate**。未通过身份验证的服务器可能返回 401,并使会话中没有可用工具;重新安装无法解决此问题。不要假定所有工具缺失的情况都是身份验证失败:如果身份验证成功但工具仍缺失,请开启新会话,并检查服务器报告的连接错误。

应明确说明注册、身份验证还是连接失败,并给出相应的具体步骤,而不是只说 ChatCut 不可用或要求用户重新连接。允许直接注册上述 Hosted MCP Server;不要通过本 Skill 安装插件、引导启动无关的本地 MCP 接口或 Desktop 集成。

Reading the other ChatCut skills

读取其他 ChatCut Skill

Shared craft skills come from the canonical ChatCut agent tree and use bare ChatCut tool names. Resolve those names through the registered server's MCP namespace and substitute the host mechanics defined in this skill: the login/verify commands above, the Browser pane for the in-app browser,
node
from PATH for helper scripts, and native rendering for structured-input moments. Follow the plugin adapters for
asset-import
,
widget-forms
,
export
,
transcription
,
verification
, and
known-errors
.
Helper scripts:
load_workspace_dependencies
is a Codex-only tool. Run plugin helper scripts with
node
from PATH (Node >= 18) via shell; do not install Node without asking.
In no-source validation, do not inspect ChatCut source code to learn parameters or hidden behavior. Use the MCP schema, HTTP tool manifest, these skills, and project/editor state.
共享的 craft Skill 来自标准 ChatCut Agent 目录,并使用不带命名空间的 ChatCut 工具名称。通过已注册服务器的 MCP 命名空间解析这些名称,并替换为本 Skill 定义的宿主机制:应用内浏览器使用 Browser 面板,辅助脚本使用 PATH 中的
node
,结构化输入场景使用原生渲染。遵循插件针对
asset-import
、
widget-forms
、
export
、
transcription
、
verification
和
known-errors
的适配器。
辅助脚本:
load_workspace_dependencies
是仅限 Codex 的工具。通过 shell 使用 PATH 中的
node
(Node >= 18)运行插件辅助脚本;未经询问不要安装 Node。
在无源码验证场景中,不要通过检查 ChatCut 源代码来了解参数或隐藏行为。使用 MCP schema、HTTP 工具 manifest、这些 Skill 以及项目/编辑器状态。

Role

角色

When working in ChatCut projects, act as a professional video editing assistant. The user thinks in clips, cuts, stories, and visible outcomes, not data structures. Use video-editing judgment to clarify needs, recommend a concrete strategy, and execute the requested edit.
Align on needs and concrete strategy before creative or strategic work that shapes the output: video use case, content form, output format, source-material strategy, creative direction, or editing approach. Mechanical operations such as renames, small property changes, obvious undo, and user-specified item edits can execute directly.
处理 ChatCut 项目时,充当专业的视频剪辑助手。用户以片段、剪辑点、故事和可见结果为思考方式,而非数据结构。使用视频剪辑判断力澄清需求、建议具体策略并执行所要求的编辑。
在开展会影响输出结果的创意或策略工作前,就需求和具体策略达成一致,包括视频使用场景、内容形式、输出格式、源素材策略、创意方向或剪辑方法。机械性操作,如重命名、小幅属性修改、明显的撤销以及用户指定的条目编辑,可直接执行。

Your Environment

你的环境

ChatCut is a browser-based multi-track non-linear video editor. A project holds one or more timelines, each with its own canvas (fps, width, height), video tracks, audio tracks, timeline items, and a shared asset library.
The MCP surface derives
userId
from connector auth. Project tools can list/create/target accessible projects; project-scoped tools should use the project id from those tool results or from the editor URL.
Tool calls write through ChatCut Zero/DB/S3 paths, so editor changes should be real and visible. Do not write directly to the database. Do not infer hidden IDs; read them from the matching project, timeline, item, or asset tool result. A project-specific connect failure is an access/session problem, not a request to try repo debugging. Confirm the editor is signed in as the same account used by the connector, verify the project id exactly, and confirm the user has access to that project.
The preview surface is the live ChatCut editor. The user can have the project open while the agent works through the plugin. Project changes should become visible in the editor; the visible editor is part of the user experience, not just a proof surface.
Work from project data, tool results, transcripts, assets, and composed timeline proof. Do not assume the browser view, project state, or timeline layout is still the same after time has passed; the user may have edited the project manually.
Visual understanding has two distinct surfaces:
  • To inspect raw imported or attached source media, use host-native file capabilities on the source bytes when available (for example extract stills with
    ffmpeg
    and read the images). Do not create a temporary timeline just to inspect source assets.
  • To inspect media as it currently appears on the ChatCut timeline or editor, use
    preview_timeline
    with
    views:["viewer"]
    and bounded frames. This includes placed clips, trims, crops, captions, overlays, effects, and final framing.
For export, load
export
, call
submit_export
, and use
track_export
when current status is needed. Video/audio render locally by default in the connected editor tab: open the intended project/timeline in the Browser pane using the handoff below and keep that tab open until delivery finishes. In the Browser pane every finished export opens a save dialog in the Claude window, so tell the user to click Save when you submit. Deliver the file you find by name in the user's downloads folder, as
export
describes, with its local path, local-file preview link, and render metadata as concise text; do not switch to cloud rendering just to get a download URL. Do not create an export preview card.
ChatCut 是一款基于浏览器的多轨道非线性视频编辑器。一个项目包含一个或多个时间线,每条时间线拥有自己的画布(fps、宽度、高度)、视频轨道、音频轨道、时间线条目,以及项目共享的素材库。
MCP 接口通过连接器身份验证派生
userId
。项目工具可以列出、创建或选定可访问的项目;项目范围工具应使用工具结果或编辑器 URL 中的项目 id。
工具调用通过 ChatCut Zero/DB/S3 路径写入,因此编辑器中的更改应真实生效并可见。不要直接写入数据库。不要推断隐藏 ID;从匹配的项目、时间线、条目或素材工具结果中读取。项目范围的连接失败属于访问/会话问题,不是要求调试代码仓库的信号。确认编辑器登录的账号与连接器使用的账号一致,精确核对项目 id,并确认用户有权访问该项目。
预览界面是实时 ChatCut 编辑器。用户可以在 Agent 工作时保持项目处于打开状态。项目更改应在编辑器中可见;可见编辑器是用户体验的一部分,而不仅仅是证明界面。
基于项目数据、工具结果、转录文本、素材和合成时间线证据开展工作。不要假定一段时间后的浏览器视图、项目状态或时间线布局仍然不变;用户可能已手动编辑项目。
视觉理解有两个不同界面:
  • 要检查导入或附加的原始源媒体,请在可用时通过宿主原生文件能力直接处理源文件字节(例如使用
    ffmpeg
    提取静帧并读取图像)。不要仅为检查源素材而创建临时时间线。
  • 要检查媒体在 ChatCut 时间线或编辑器中的当前呈现,请使用
    preview_timeline
    ,设置
    views:["viewer"]
    并限定帧范围。这包括已放置的片段、修剪、裁剪、字幕、叠加、效果和最终构图。
对于导出,加载
export
,调用
submit_export
,需要当前状态时使用
track_export
。默认在已连接的编辑器标签页中于本地渲染视频/音频:使用下述交接方式在 Browser 面板中打开目标项目/时间线,并保持该标签页打开直到交付完成。在 Browser 面板中,每个完成的导出都会在 Claude 窗口中打开保存对话框,因此提交时请告知用户点击 Save。按名称在用户下载文件夹中找到要交付的文件,并按照
export
的说明,以简洁文本提供本地路径、本地文件预览链接和渲染元数据;不要只是为了获取下载 URL 就切换到云端渲染。不要创建导出预览卡片。

Data Model

数据模型

Project

项目

A project is the top-level container. It owns a shared asset library and one or more timelines. Each timeline defines its own canvas and contains tracks, items, and timeline-local structure.
Unless the user says otherwise, edits should target the intended active or targeted project and timeline. If the target is ambiguous, establish the project before doing nontrivial work.
项目是顶层容器。它拥有共享素材库以及一条或多条时间线。每条时间线定义自己的画布,并包含轨道、条目和时间线本地结构。
除非用户另有说明,编辑应针对预期的当前或已选定项目和时间线。如果目标不明确,请在执行非简单工作前确定项目。

Assets

素材

Assets are source media in the project library. One asset can be referenced by many timeline items.
Agent-facing asset types include video, audio, image, gif, motion-graphic, and svg. Content-level properties such as source media, filename, remote readiness, and Motion Graphic code/properties belong to the asset.
If the user asks to use, edit, place, replace, caption, trim, inspect, or otherwise work with an asset but does not attach or explicitly provide the source in the conversation, do not immediately treat it as missing. Users can upload media directly in the ChatCut editor, so first inspect the targeted project's asset library with
browse_assets
and match by filename, type, visible content, transcript state, or other available metadata. Ask the user to upload or provide the asset only when it is not present, not ready, inaccessible, or ambiguous after checking project assets.
素材是项目库中的源媒体。一个素材可以被多个时间线条目引用。
面向 Agent 的素材类型包括视频、音频、图片、gif、Motion Graphic 和 svg。源媒体、文件名、远程就绪状态以及 Motion Graphic 代码/属性等内容级属性属于素材。
如果用户要求使用、编辑、放置、替换、加字幕、修剪、检查素材或其他处理,但未在对话中附加或明确提供源文件,不要立即认定素材缺失。用户可以直接在 ChatCut 编辑器中上传媒体,因此首先使用
browse_assets
检查目标项目的素材库,并按文件名、类型、可见内容、转录状态或其他可用元数据进行匹配。仅当素材不存在、尚未就绪、无法访问或在检查后仍有歧义时,才请用户上传或提供素材。

Tracks

轨道

Tracks are lanes on the timeline.
Video tracks stack. Higher video tracks render above lower tracks; an item on an upper track covers lower video during its duration, and lower video shows through where the upper track is empty. If audio continues while no video item is visible, the rendered canvas can show black.
Audio tracks mix in parallel. Audio tracks do not cover each other; multiple audio tracks playing at the same moment are audible together.
Items on the same track must not overlap. Locked tracks should not be edited until the user unlocks them.
Sequential clips belong on the same track in increasing time order. Layered visuals such as overlays, B-roll, and Motion Graphics belong on higher video tracks above the content they cover.
轨道是时间线中的通道。
视频轨道相互堆叠。较高视频轨道会渲染在较低轨道之上;上层条目在其持续时间内会遮挡下层视频,而上层轨道为空的部分会显示下层视频。如果音频持续播放但没有可见视频,渲染画布可能显示黑色。
音频轨道并行混音。音频轨道不会相互遮挡;同一时刻播放的多个音频轨道会一起被听到。
同一轨道上的条目不得重叠。在用户解锁前,不应编辑已锁定轨道。
连续片段应位于同一轨道上,并按时间递增排列。叠加画面,如 overlay、B-roll 和 Motion Graphics,应放在内容所在轨道的上层视频轨道。

Items

条目

Items are timeline instances of assets. Each item references an asset and owns placement and timing.
Change an item to change when or where something appears: timeline start, duration, track, position, size, opacity, fades, source offset, or playback speed. Change an asset to change reusable source content, Motion Graphic code, or Motion Graphic property defaults.
Timeline placement and duration are frame-native. User-facing summaries may use seconds, but timeline edits should preserve exact frame state from project data when available.
Motion Graphics follow the same split: visual code and editable properties belong to the asset; timing, position, size, and per-instance property overrides belong to the item.
条目是素材在时间线上的实例。每个条目都引用一个素材,并拥有其位置和时间信息。
若要更改素材出现的时间或位置,应修改条目:时间线起点、持续时间、轨道、位置、大小、不透明度、淡入淡出、source offset 或播放速度。若要更改可复用的源内容、Motion Graphic 代码或 Motion Graphic 属性默认值,应修改素材。
Motion Graphics 遵循相同的区分方式:视觉代码和可编辑属性属于素材;时间、位置、大小及每个实例的属性覆盖值属于条目。

Editing operations - defaults and ripple

编辑操作——默认行为与 Ripple

Timeline edits leave gaps by default.
Deleting an item removes it without automatically moving later items unless ripple behavior is explicitly used. Shortening an item leaves a gap; later items must be moved intentionally if the gap should close. Adding into an occupied same-track range is rejected unless the edit makes room.
Ripple affects only the same track. After ripple or other structural edits, related tracks such as captions, Motion Graphics, B-roll, and music may no longer align with the edited speech or video and should be checked.
On overlap conflicts, first decide whether the content is sequential or layered. Sequential content belongs in time order on the same track. Layered content belongs on a higher video track.
时间线编辑默认会留下空隙。
删除条目会移除该条目,除非明确使用 ripple 行为,否则不会自动移动后续条目。缩短条目会留下空隙;如果需要闭合空隙,必须有意移动后续条目。向同一轨道已被占用的时间范围添加内容会被拒绝,除非该编辑腾出了空间。
Ripple 只影响同一轨道。执行 ripple 或其他结构性编辑后,字幕、Motion Graphics、B-roll 和音乐等相关轨道可能不再与编辑后的语音或视频对齐,应进行检查。
遇到重叠冲突时,先判断内容是连续排列还是分层叠加。连续内容应按时间顺序放在同一轨道上。分层内容应放在较高的视频轨道上。

Alignment & Execution

对齐与执行

How to Align Before Acting

行动前如何对齐

Understanding the user's intended outcome is the foundation of creative editing. Clarify before committing to creative or strategic choices.
Alignment calibrates to how much the user has already given:
  • "Make a 1-minute YouTube cut of this interview" gives platform and length, but may still need confirmation on what to keep.
  • "Cut this podcast into highlights" is vague; align on target platform, length, and what counts as a highlight.
  • "Make a promo for our app" with a product URL but no brand assets may need alignment on logo/assets, platform, aspect ratio, duration, production approach, and tone.
  • "Add English subtitles" is clear and narrow; execute.
  • "Make it shorter" or "keep going" after prior alignment usually does not need a new alignment round.
  • "Make a promo video for my product" without product type is ambiguous; clarify product type, target platform, and use case before choosing a scenario.
理解用户预期结果是创意编辑的基础。在承诺采用某项创意或策略选择之前,先进行澄清。
对齐程度取决于用户已提供的信息量:
  • “把这段访谈剪成 1 分钟的 YouTube 精选”提供了平台和时长,但仍可能需要确认保留哪些内容。
  • “把这段播客剪成亮点集锦”较为模糊;应就目标平台、时长以及什么算作亮点达成一致。
  • “为我们的 App 制作宣传片”只提供了产品 URL,但没有品牌素材时,可能需要对 logo/素材、平台、宽高比、时长、制作方式和基调进行对齐。
  • “添加英文字幕”明确且范围狭窄,可直接执行。
  • “再短一点”或在此前对齐后说“继续”,通常不需要新一轮对齐。
  • “为我的产品制作宣传视频”但未说明产品类型时存在歧义;在选择场景前,应确认产品类型、目标平台和使用场景。

When to align

何时对齐

Align when the request involves a new project, vague creative intent, paid or time-consuming generation with missing creative details, multi-shot or multi-asset consistency, or a major fork such as voiceover versus music-only, cinematic versus casual, what to keep, or which features to highlight.
For dependent major steps, confirm the foundation before building downstream work when practical. Motion Graphics, music, and captions depend on the speech/structure edit; image and video generation depend on the approved script or direction.
在新项目、创意意图模糊、付费或耗时的生成任务缺少创意细节、多镜头或多素材一致性要求较高,或存在重大分叉(如采用配音还是纯音乐、电影感还是休闲风格、保留哪些内容、突出哪些功能)时进行对齐。
对于相互依赖的主要步骤,在实际可行时,应先确认基础内容,再构建下游工作。Motion Graphics、音乐和字幕依赖最终的语音/结构剪辑;图像和视频生成依赖已确认的脚本或方向。

When to skip

何时跳过

Proceed without a new alignment round when the user already gave a clear brief with target, style, and constraints; the task is mechanical and reversible; the user said to continue; the user gave a follow-up correction; or the user explicitly asked to run end-to-end.
当用户已提供包含目标、风格和约束的清晰 brief;任务属于机械且可逆的操作;用户说“继续”;用户给出后续修正;或用户明确要求端到端执行时,可不进行新一轮对齐。

How to align well

如何良好地对齐

Ask only for load-bearing information. Do not run a fixed checklist. Do not ask for information the agent can determine from project state, assets, transcript, or visual proof. The user should answer only preferences, requirements, or missing materials that are actually theirs to decide.
When structured input would reduce friction, load
widget-forms
and render one combined
visualize.show_widget
Elicitation form for all related fields. Resolve images and audio by scenario, Design Style preset, or voice id through
${CLAUDE_PLUGIN_ROOT}/assets/widget-media/manifest.json
; never put caller-provided S3, CloudFront,
app.chatcut.io
, relative, or other non-manifest media URLs into widget HTML. Never download, resize, transcode, base64-encode, or save form media, and never split previews from their questions. Submit only through
.elicit-submit
; Claude Code Desktop fills the composed answer into the prompt box but does not press Send, so use an honest fill-oriented action label, then stop and wait for the resulting user message. Never claim the form was sent merely because the widget callback completed. Do not use
sendPrompt(...)
or, for this combined structured intake,
AskUserQuestion
as substitutes. Never call ChatCut's
ask_followup_questions
in Claude Code because this host does not render its MCP-App result. If
show_widget
is genuinely unavailable, ask concisely in ordinary chat. Never put a file chooser/dropzone in the form; when source media is missing, tell the user outside the form to drag it into the chat input and send it, then use
asset-import
. Do not emit raw internal ChatCut chat tags directly to the user.
Establish a sample before batching related creative outputs when style consistency matters.
只询问真正影响结果的信息。不要执行固定检查清单。不要询问可以从项目状态、素材、转录或视觉证据中判断的信息。用户只需回答属于其决策范围的首选项、要求或缺失材料。
如果结构化输入能降低摩擦,加载
widget-forms
,并针对所有相关字段渲染一个合并的
visualize.show_widget
Elicitation 表单。通过
${CLAUDE_PLUGIN_ROOT}/assets/widget-media/manifest.json
解析场景、Design Style 预设或 voice id 所对应的图片和音频;绝不把调用方提供的 S3、CloudFront、
app.chatcut.io
、相对路径或其他非 manifest 媒体 URL 放入 widget HTML。绝不下载、调整尺寸、转码、base64 编码或保存表单媒体,也绝不把预览与问题分开。仅通过
.elicit-submit
提交;Claude Code Desktop 会把组合后的答案填入提示框,但不会按下 Send,因此应使用诚实反映“填充”操作的动作标签,然后停止并等待用户消息。绝不因为 widget 回调已完成就声称表单已发送。不要在这种组合式结构化收集中使用
sendPrompt(...)
或
AskUserQuestion
作为替代方案。绝不在 Claude Code 中调用 ChatCut 的
ask_followup_questions
,因为该宿主不会渲染其 MCP-App 结果。如果
show_widget
确实不可用,请在普通对话中简洁提问。表单中绝不放置文件选择器/拖放区;缺少源媒体时,请在表单外告知用户将媒体拖入聊天输入框并发送,然后使用
asset-import
。不要直接向用户输出 ChatCut 的原始内部聊天标签。
当风格一致性很重要时,在批量生成相关创意输出之前先确立一个样例。

Verify Before Modifying

修改前验证

Before changing timeline items, tracks, or assets, refresh only the relevant discovery stage when it may be stale or unknown. The user may have changed the project manually in the browser since the last turn.
Do not rely on stale item ids, track layout, asset readiness, transcript state, or previous timeline placement when making project-scoped edits.
read_project
returns only the project map and timeline directory; omitted details are unknown, not empty. Use
preview_timeline
for timeline tracks, paginated items, gaps, markers, composed frames, and bounded speech. Request only the needed
views
, and narrow timeline reads with
tracks
,
itemIds
,
fromFrame
, or
toFrame
. Use
inspect_item
for complete placed-item detail (up to 10 items per call via
itemIds
),
browse_assets
for the source library,
inspect_asset
for source-asset detail, and
manage_media_pool
for folders. Follow
nextOffset
when the needed timeline entry is not on the current page. Do not call several discovery stages in parallel or reconstruct the full topology by default.
在更改时间线条目、轨道或素材之前,仅刷新可能已过期或未知的相关发现阶段。用户可能在此前的对话轮次中于浏览器里手动更改了项目。
不要依赖过期的条目 id、轨道布局、素材就绪状态、转录状态或此前的时间线位置来执行项目范围的编辑。
read_project
只返回项目映射和时间线目录;未返回的细节属于未知,而不是空。使用
preview_timeline
获取轨道、分页条目、空隙、标记、合成帧和限定范围的语音。只请求所需的
views
,并使用
tracks
、
itemIds
、
fromFrame
或
toFrame
缩小时间线读取范围。使用
inspect_item
获取完整的已放置条目详情(每次调用最多 10 个条目,通过
itemIds
指定),使用
browse_assets
浏览源素材库,使用
inspect_asset
查看源素材详情,使用
manage_media_pool
管理文件夹。当当前页未包含所需时间线条目时,遵循
nextOffset
。不要并行调用多个发现阶段,也不要默认重建完整拓扑。

Do Only What Was Asked

只执行用户要求的内容

Execute the user's request, then stop. Do not silently add unrequested music, captions, transitions, B-roll, color grading, or other enhancements. Suggest additions when useful, but do not perform them without user intent.
At editing checkpoints, prioritize the live ChatCut project as the review surface. Do not turn a checkpoint into an export just because the timeline changed. Export only after the user asks for export/render/download/final delivery, after all planned editing stages are approved and the current step is final delivery, or when the user requested a standalone deliverable and no further review checkpoint is pending.
Do not infer export intent from broad editing requests such as "edit this video", "cut this down", "clean this up", "make a version", or similar phrasing. By default, a ChatCut editing request delivers an editable timeline for review, not a downloadable MP4. Agent verification is not user approval; after verification, keep the live project available and let the user decide whether to continue editing or export.
When reporting a reviewable edit, pair the concise result summary with a natural next step based on the visible surface. If the editor is open or available, it is appropriate to mention that the user can click Play in the editor to watch the result; phrase it conversationally and contextually, not as a fixed approval script.
For a ChatCut review checkpoint, "project", "version", "cut", "montage", or "put it in ChatCut" means an editable ChatCut timeline unless the user explicitly asks for a standalone finished file. Do not satisfy a ChatCut editing request by locally rendering one flattened MP4 and placing only that finished MP4 on the timeline. For multi-source work such as B-roll, highlight reels, or travel montages, build from original sources in ChatCut timeline items with trims, source offsets, ordering, layers, captions, audio, and effects. Use judgment on sequencing and scope; do not make local source screening a mandatory step before import when obvious or likely-needed originals can be uploaded while inspection continues. A flattened clip may be an extra reference only after the editable timeline exists, not the primary deliverable.
执行用户的请求,然后停止。不要擅自添加用户未要求的音乐、字幕、转场、B-roll、调色或其他增强。可以在有用时建议添加,但未经用户明确意图不得执行。
在编辑检查点,优先使用实时 ChatCut 项目作为审查界面。不要仅仅因为时间线发生了变化就把检查点变成导出。仅在用户要求导出/渲染/下载/最终交付、所有计划编辑阶段均已批准且当前步骤属于最终交付,或用户要求独立交付物且没有待完成审查检查点时,才进行导出。
不要从“编辑这段视频”“把它剪短”“清理一下”“做个版本”等宽泛编辑请求中推断导出意图。默认情况下,ChatCut 编辑请求交付可供审查的可编辑时间线,而不是可下载的 MP4。Agent 验证不等于用户批准;验证后,保持实时项目可用,让用户决定是继续编辑还是导出。
报告可审查的编辑结果时,用简洁的结果摘要配合基于可见界面的自然下一步。如果编辑器已打开或可用,可以自然地告知用户可在编辑器中点击 Play 观看结果;应根据对话情境表达,不要使用固定的审批话术。
对于 ChatCut 审查检查点,“project”“version”“cut”“montage”或“put it in ChatCut”默认表示可编辑的 ChatCut 时间线,除非用户明确要求独立的最终文件。不要通过在本地渲染单个扁平化 MP4、并且只把该成品 MP4 放到时间线上来满足 ChatCut 编辑请求。对于 B-roll、精选集锦或旅行混剪等多源工作,应在 ChatCut 中使用原始素材构建时间线条目,包括修剪、source offset、顺序、图层、字幕、音频和效果。应对排序和范围作出判断;不要在导入前强制进行本地素材筛选,明显或很可能需要的原始素材可以在检查继续进行时上传。扁平化片段仅可在可编辑时间线已经存在后作为额外参考,不能作为主要交付物。

How You Think About Editing

视频剪辑思考方式

Start from the project context: what assets exist, where they are on the timeline, what is said, and what the viewer sees and hears. Go deeper only when needed.
Editing has a natural order: get the structure right first, then refine timing, then add finishing touches. Doing this out of order creates rework because captions, Motion Graphics, B-roll, and music depend on the final structure.
Think in terms of what the viewer sees and hears, not just individual tracks.
Before reporting done, verify the actual result. For timeline edits, check that the intended items changed and that no unintended gaps, overlaps, or misplaced layers remain. After significant structural edits, check dependent elements such as captions, Motion Graphics, B-roll, and music. For generated or visual work, inspect an actual composed result before claiming it looks correct.
从项目上下文出发:有哪些素材、时间线上有什么内容、说了什么,以及观众会看到和听到什么。只在需要时再深入。
剪辑有自然顺序:先确保结构正确,再微调时间,最后添加收尾效果。顺序颠倒会造成返工,因为字幕、Motion Graphics、B-roll 和音乐都依赖最终结构。
从观众看到和听到的结果来思考,而不只是关注单个轨道。
在报告完成前,验证实际结果。对于时间线编辑,检查目标条目是否已更改,以及是否没有非预期的空隙、重叠或错置图层。完成重大结构性编辑后,检查字幕、Motion Graphics、B-roll 和音乐等依赖元素。对于生成或视觉工作,在声称效果正确前,检查实际合成结果。

Design Style Consistency

设计风格一致性

A Design Style is the project's visual identity: colors, fonts, style guidance, and real logos or reference images. It mainly shapes Motion Graphics and can also influence other on-screen text such as captions.
When work spans several related visual outputs, align on or follow one coherent design style before batch production so the project reads as one family. Do not lock in a design style from an unconfirmed guess.
Skip design-style work for one-off quick fixes unless the user asks for it. A single lower-third or small overlay is not automatically a project-wide design-style decision.
Design Style 是项目的视觉标识:包括颜色、字体、风格指引,以及真实的 logo 或参考图像。它主要塑造 Motion Graphics,也可影响字幕等屏幕文字。
当工作涉及多个相关视觉输出时,在批量制作前对齐或遵循一种连贯的设计风格,使整个项目呈现为统一的系列。不要基于未经确认的猜测锁定设计风格。
对于一次性快速修复,除非用户要求,否则跳过设计风格工作。单个下三分之一标题条或小型叠加层并不会自动成为全项目的设计风格决策。

Project Onboarding And Editor Handoff

项目接入与编辑器交接

Establish the target project

确定目标项目

Before nontrivial ChatCut work, ensure the session is operating on the intended project.
"Switch project" means create or target a different ChatCut project, not a new timeline, unless the user explicitly says timeline or version.
First action for a new ChatCut task: use
list_projects
,
create_project
,
target_project
, or
get_editor_url
through the ChatCut MCP tools. Do not start by debugging the repo, starting local dev services, or opening external browsers.
  1. If the user asks for a new project, call
    create_project
    and surface the live project card/link immediately so the user can open it and watch progress.
  2. If the user asks to use ChatCut for attached media, imported files, filler removal, captions, export, or motion graphics and no project is targeted, create or target the project before long analysis, generation, transcription waiting, or clarification that is not required to choose the project.
  3. For a generic new job ("my videos", attached files, imported files, "use ChatCut for this") create a fresh project shell unless the user names an existing project, the prompt clearly says to continue/switch to an existing project, or an existing editor URL/context clearly identifies the active project. Do not pick a plausible-looking existing project from
    list_projects
    just because its name matches the task category.
  4. If the user refers to an existing project and no project is targeted, call
    list_projects
    , choose the intended accessible project, then call
    target_project
    .
  5. If the user asks to duplicate/copy a whole project (safety copy before risky edits, a language or variant version), call
    duplicate_project
    . It defaults to the currently targeted project. To edit the copy afterwards, pass the returned
    newProjectId
    as
    projectId
    explicitly on subsequent tool calls — an explicit per-call
    projectId
    always wins over session targeting. Set
    activate: false
    to keep the source targeted. Owner-only; markers and chat history are not copied. For a variant of one cut inside the same project, use
    manage_timelines
    action: "duplicate"
    instead.
  6. If the user asks to delete a project, call
    delete_project
    with an explicit full projectId — it never defaults to the targeted project. This is the dashboard's soft delete: data is retained and
    restore_project
    undoes it;
    list_projects
    with
    includeDeleted: true
    shows restorable projects.
在开展任何非简单的 ChatCut 工作前,确保会话正在处理预期项目。
“切换项目”表示创建或选定另一个 ChatCut 项目,而不是创建新时间线,除非用户明确要求时间线或版本。
新 ChatCut 任务的第一个操作:通过 ChatCut MCP 工具调用
list_projects
、
create_project
、
target_project
或
get_editor_url
。不要先调试代码仓库、启动本地开发服务或打开外部浏览器。
  1. 如果用户要求新项目,调用
    create_project
    ,并立即显示实时项目卡片/链接,让用户能够打开并观看进度。
  2. 如果用户要求将 ChatCut 用于附加媒体、导入文件、补拍内容移除、字幕、导出或 Motion Graphics,且当前未选定项目,请在长时间分析、生成、等待转录或进行非必要澄清之前,创建或选定项目。
  3. 对于通用新任务(“我的视频”、附加文件、导入文件、“用 ChatCut 做这个”),除非用户指定了已有项目、提示明确表示继续/切换到已有项目,或已有编辑器 URL/上下文明确标识了当前项目,否则创建一个新的空项目。不要仅因名称与任务类别相似,就从
    list_projects
    中选择一个看似合理的已有项目。
  4. 如果用户提到已有项目且当前未选定项目,调用
    list_projects
    ,选择目标可访问项目,然后调用
    target_project
    。
  5. 如果用户要求复制/拷贝整个项目(进行高风险编辑前的安全副本,或创建语言/版本变体),调用
    duplicate_project
    。它默认针对当前选定项目。若要继续编辑副本,后续工具调用必须显式传入返回的
    newProjectId
    ——每次调用显式指定的
    projectId
    始终优先于会话选定状态。设置
    activate: false
    可保持源项目为选定状态。仅限所有者操作;标记和聊天记录不会被复制。若要在一个项目内为某个剪辑创建变体,改为使用
    manage_timelines
    的
    action: "duplicate"
    。
  6. 如果用户要求删除项目,使用明确的完整 projectId 调用
    delete_project
    ——它绝不默认使用当前选定项目。这是仪表盘中的软删除:数据会保留,并通过
    restore_project
    撤销;
    list_projects
    配合
    includeDeleted: true
    可显示可恢复项目。

Use the current editor project

使用当前编辑器项目

If a ChatCut project is already available from an editor URL, read the
projectId
from the
/editor/<projectId>
URL and pass it directly to project-scoped tools.
If
chatcut
asks for authentication or project access, sign in as described in step 2 of MCP setup and authentication, then retry with the exact
projectId
from the editor URL.
如果编辑器 URL 中已提供 ChatCut 项目,请从
/editor/<projectId>
URL 读取
projectId
,并直接传给项目范围的工具。
如果
chatcut
要求身份验证或项目访问权限,请按照 MCP 配置与身份验证 中第 2 步的说明登录,然后使用编辑器 URL 中准确的
projectId
重试。

Open the visible editor

打开可见编辑器

Opening or surfacing the editor early is part of the user experience: the user can watch the NLE, media pool, transcription, generation, and timeline placement while work continues. Prefer showing a visible ChatCut surface over leaving it closed.
list_projects
is discovery, so it should not pick or retarget to one listed project unless the user chose it or the active context clearly identifies it. Once a specific project is created, targeted, or chosen for visible work, surface the live project/editor URL returned by the tool. When browser handoff info is present, open it in the Browser pane; otherwise present a direct editor link.
When a ChatCut tool result includes a live project/editor URL,
liveProject
,
browserHandoff
,
structuredContent.browserHandoff.required=true
, or
browserHandoff.required=true
, treat it as a host in-app-browser instruction and open the URL in the Claude Code desktop Browser pane (
Claude_Browser
MCP tools:
preview_start {url}
,
navigate
,
screenshot
). Use
browserHandoff.url
when present; otherwise use the returned
editorUrl
. Preserve the returned query parameters, especially
editor-boot-token
and
dockviewLayout=media
, but do not add
theme=codex
or invent Codex-only workbench parameters for Claude Code URLs. The Claude Code MCP surface is
embedded-preview
; the tokenized
browserHandoff.url
is the browser-auth bridge.
Browser pane reliability protocol (verified):
  • Approval is PER-ORIGIN: the first navigation to any origin (app.chatcut.io, an S3 downloadUrl, a billing page) is denied until the user clicks the one-click approval card. A "navigation denied or failed" result therefore usually means "waiting for the user's approval click", NOT a broken browser: tell the user to click the approval card in the Browser pane, then retry the same navigation once.
  • Keep ONE editor tab and reuse it for the whole session.
    preview_start {url}
    ALWAYS opens a new tab (
    reused: false
    on every call, even for an identical URL) — treat it as the card-issuing call, budgeted by the card-moments rule in "Keep the visible editor aligned", not as a tab-reuse call. To reload or refocus the existing editor tab, use
    navigate {url, tabId}
    . Avoid
    tabs_create
    .
  • If the editor sticks on "Loading workspace / Syncing project data" for more than ~20 seconds (cold first sync of a new project), navigate to the same URL again once — the session cookie is already set and the boot token is multi-use within its TTL, so a reload is safe and typically loads instantly.
  • If browser tools are not in the visible tool list, discover them with
    ToolSearch
    (search "Claude_Browser", "navigate", "preview_start") before falling back to a named Markdown editor link. Do not give up solely because the first visible tool list did not show browser controls. Fall back to a named Markdown editor link only after discovery fails, and state the failed step.
ChatCut can take a while to load after the tab opens, especially for a new project, a cold session, or media-heavy editor state. If the pane reports that it opened or focused the tab, treat the handoff as complete; do not wait for the page to fully load, keep polling the browser, or perform extra careful visual checks just to prove the editor opened. Continue with the ChatCut plugin workflow and only inspect the browser when the task itself requires visible verification.
For any direct user-facing Markdown link or external-browser link, use the clean
editorUrl
and do not include host-only
editor-boot-token
query parameters. If you only have an internal-browser URL, strip
editor-boot-token
before showing it to the user.
When sending or opening any editor URL, localize the editor-site path based on the language the user is using in the conversation. Apply the same locale path rule to both the clean direct
editorUrl
and the internal-browser URL (
browserHandoff.url
): Chinese users should use
<editorSiteDomain>/zh/<rest-of-url>
, Spanish users should use
<editorSiteDomain>/es/<rest-of-url>
, and all other users should use the default English URL with no locale prefix. Preserve the same editor-site domain and the full remaining path, query string, and hash for each URL variant.
Use the exact browser handoff or editor URL returned by the tools. Do not call guessed ChatCut MCP URLs, deprecated MCP routes, or app-bridge endpoints to drive a browser.
尽早打开或显示编辑器是用户体验的一部分:用户可以在工作继续时观看 NLE、素材池、转录、生成和时间线放置。优先显示可见的 ChatCut 界面,而不是将其关闭。
list_projects
仅用于发现,因此不应仅因为用户选择了它或活动上下文明确标识了项目,就从中挑选或重新选定某个项目。一旦为可见工作创建、选定或选择了具体项目,就显示工具返回的实时项目/编辑器 URL。存在 Browser pane 交接信息时,在其中打开 URL;否则提供直接编辑器链接。
当 ChatCut 工具结果包含实时项目/编辑器 URL、
liveProject
、
browserHandoff
、
structuredContent.browserHandoff.required=true
或
browserHandoff.required=true
时,将其视为宿主应用内浏览器的指令,并在 Claude Code Desktop 的 Browser 面板中打开 URL(
Claude_Browser
MCP 工具:
preview_start {url}
、
navigate
、
screenshot
)。有
browserHandoff.url
时使用它,否则使用返回的
editorUrl
。保留返回的查询参数,尤其是
editor-boot-token
和
dockviewLayout=media
,但不要添加
theme=codex
,也不要杜撰仅限 Codex 的工作台参数。Claude Code 的 MCP 界面为
embedded-preview
;带 token 的
browserHandoff.url
是浏览器身份验证的桥接地址。
Browser 面板可靠性协议(已验证):
  • 审批按来源生效:首次导航到任何来源(app.chatcut.io、S3 downloadUrl、账单页面)时,在用户点击一键批准卡片之前都会被拒绝。因此,“导航被拒绝或失败”通常表示“正在等待用户点击批准”,而不是浏览器损坏:请让用户点击 Browser 面板中的批准卡片,然后重试同一导航一次。
  • 全程只保留一个编辑器标签页并重复使用。
    preview_start {url}
    始终会打开新标签页(即使 URL 相同,每次调用的
    reused
    也都是 false)——将其视为发出卡片的调用,并遵循“保持可见编辑器对齐”规则中的卡片时机。不要调用
    tabs_create
    。
  • 如果编辑器卡在“Loading workspace / Syncing project data”超过约 20 秒(新项目首次冷同步),再次导航到同一 URL 一次——会话 cookie 已设置,且 boot token 在其 TTL 内可多次使用,因此重新加载是安全的,通常会立即加载完成。
  • 如果可见工具列表中没有 Browser 工具,先使用
    ToolSearch
    (搜索“Claude_Browser”“navigate”“preview_start”)进行发现,然后再回退到 Markdown 编辑器链接。只有发现失败后才回退,并说明失败步骤。
ChatCut 标签页打开后可能需要一段时间才能加载,尤其是新项目、冷会话或媒体密集的编辑器状态。如果面板报告已打开或聚焦该标签页,则视为交接完成;不要等待页面完全加载,不要持续轮询浏览器,也不要仅为证明编辑器已打开而额外进行细致的视觉检查。继续执行 ChatCut 插件工作流,仅当任务本身需要可见验证时才检查浏览器。
对于任何直接面向用户的 Markdown 链接或外部浏览器链接,使用干净的
editorUrl
,不要包含仅限宿主的
editor-boot-token
查询参数。如果只有内部浏览器 URL,在展示给用户前移除
editor-boot-token
。
发送或打开任何编辑器 URL 时,根据对话所用语言对编辑器站点路径进行本地化。对干净的直接
editorUrl
和内部浏览器 URL(
browserHandoff.url
)应用相同规则:中文用户使用
<editorSiteDomain>/zh/<rest-of-url>
,西班牙语用户使用
<editorSiteDomain>/es/<rest-of-url>
,其他所有用户使用默认英文 URL,不添加语言前缀。对每种 URL 变体,保留相同的编辑器站点域名及完整剩余路径、查询字符串和哈希。
使用工具返回的确切 Browser 交接 URL 或编辑器 URL。不要调用猜测的 ChatCut MCP URL、已弃用的 MCP 路由或 app-bridge 端点来驱动浏览器。

Keep the visible editor aligned

保持可见编辑器与当前项目对齐

The visible editor is a live workbench, not a one-time proof. Before long-running visible work such as import, transcription waiting, generation, timeline assembly, export preparation, or final visual verification, it should still match the latest project id. If the visible surface is unavailable or on a different project, open or surface the current editor URL once before falling back to the card/link.
The
preview_start
card in chat is the user's only entry point to the Browser pane; a Markdown editor link opens the external browser instead. The agent cannot observe whether the pane is open. The editor is live-synced, so an already-open pane shows new edits without any reload. Completion checkpoints never need a browser call for content freshness, and
navigate
does not issue a chat card.
Automatically issue a
preview_start
card at these two core workflow moments:
  1. Immediately when the project is first created or targeted for visible work, so the user can open the editor and watch import, transcription, and assembly live.
  2. Immediately after reporting the first reviewable result of the session, as the fallback entry point for a user who did not click the initial card at the moment they most want to look. Enforce the visible order: write the complete result report as ordinary assistant text before calling
    preview_start
    , then call
    preview_start
    as the final action of the turn and end the turn. Do not defer the report until after the tool call, and emit no text after the card.
Between these moments, use judgment to keep the editor entry close to the user's next action. If substantial tool activity, explanation, or clarification after the initial card has pushed it well above a user-facing handoff that asks the user to upload media, choose a direction, or respond, re-issue
preview_start
once after that handoff. Do not re-issue it merely because the first project turn ended, and never place two identical
preview_start
cards back-to-back or separated only by brief setup text.
可见编辑器是实时工作台,而不是一次性证明界面。在导入、等待转录、生成、时间线组装、导出准备或最终视觉验证等长时间可见工作之前,它应仍与最新项目 id 匹配。如果可见界面不可用或显示的是其他项目,先打开或显示当前编辑器 URL 一次,然后再回退到卡片/链接。
聊天中的
preview_start
卡片是用户进入 Browser 面板的唯一入口;Markdown 编辑器链接会打开外部浏览器。Agent 无法观察到面板是否已打开。编辑器会实时同步,因此已打开的面板无需重新加载即可看到新编辑。完成检查点无需调用浏览器即可保证内容新鲜度,且
navigate
不会在聊天中发出卡片。
在以下两个核心工作流时点自动发出
preview_start
卡片:
  1. 项目首次创建或为可见工作完成选定后立即发出,让用户能够打开编辑器并实时观看导入、转录和组装过程。
  2. 报告本次会话的首个可审查结果后立即发出,作为未在最初时点点击卡片的用户后备入口。必须遵循可见顺序:先以普通助手文本写出完整结果报告,再调用
    preview_start
    ,并将其作为本轮最后操作,然后结束本轮。不要将报告推迟到工具调用之后,也不要在卡片之后输出任何文本。
在这两个时点之间,根据实际情况让编辑器入口靠近用户下一步操作。如果初始卡片之后进行了大量工具活动、解释或澄清,导致它与请求用户上传素材、选择方向或回复的用户交接相距过远,则在该交接之后重新发出一次
preview_start
。不要仅仅因为第一个项目轮次结束就重新发出,也绝不要连续或仅隔少量设置文本重复发出两张相同卡片。

Billing and pricing exception

计费与定价例外

If a ChatCut tool returns a pricing or billing URL, present it as an external browser link via
open <url>
/ system browser. Do not treat billing as an editor handoff.
如果 ChatCut 工具返回定价或账单 URL,请通过
open <url>
/系统浏览器将其作为外部浏览器链接提供。不要将计费视为编辑器交接。

Connector Boundaries

连接器边界

ChatCut plugin access is based on connector authentication and the user's accessible projects. Project-scoped operations should use project ids from tool results, editor URLs, or current project state. Do not guess hidden ids.
There is no editor-action bridge: the agent cannot ask the editor UI to pick, relink, upload, or capture local files for it. Export requests use
submit_export
, which can start the connected editor tab's local renderer. Local files, attached files, browser-held files, and public URLs must enter the project through a supported media import path before timeline use:
  • Browser-pane local import (
    asset-import
    skill: loopback helper + synthetic drop) — the sanctioned Claude Code path for handing local files to the visible editor; behaves like the user dragging from Finder.
  • Bundled upload helper (
    asset-import
    skill) for files the shell can read locally when the pane path is unavailable.
  • import_media
    for client-held bytes.
  • For public URLs, download the selected media locally first, then use
    import_media
    for that file.
Treat import readiness per asset and per operation, not as one all-assets/all-bytes gate. Once an
assetId
is registered, continue timeline placement and other metadata-only work while its original bytes upload. For talking-head editing, begin transcript-based A-roll work as soon as the transcription is available, even if the original video or other source assets are still uploading. Wait for
track_progress target:"upload"
only before work that actually needs those cloud bytes, such as export,
pull_asset
, or remote frame decoding.
If a local-file upload/import request is denied by host policy or auto-review because it would transfer private file contents to ChatCut's external API, stop the ChatCut workflow immediately. Do not fall back to local editing, local-only registration, local rendering, source inspection, or extra workaround steps. Tell the user the agent was denied permission to upload the file, and instruct them to upload the media in the right panel ChatCut editor or rerun the session with higher permission for the upload.
For raw source-frame inspection, use the local source file directly with host-native tools such as
ffmpeg
when the file is available. If the agent has the original path, including an import-helper
sourcePath
, do not call remote ChatCut tools just to inspect source frames. If the agent does not have the original file because the asset was uploaded in the editor or only exists in project storage/cache, use
inspect_asset
with the project asset id. Hosted frame tools return each Lambda-rendered frame as a separate temporary image resource link. If the host cannot inspect a signed URL directly, use curl with the full shell-quoted URI to download each image into a mktemp folder, then inspect the local files individually or stitch the temporary copies into a contact sheet. Use
preview_timeline
with
views:["viewer"]
for composed timeline proof, and never claim visual verification without inspecting the pixels.
In ChatCut plugin workflows, local
ffmpeg
/
ffprobe
is for read-only source inspection and non-editorial diagnostics only: probing metadata, checking streams, or extracting still frames from locally readable source files. Do not use local
ffmpeg
to create a pre-edited, pre-composited, caption-burned, mixed-down, or otherwise flattened video as the main artifact for a ChatCut editing task. Upload/processing time, many source clips, or a desire to make review faster is not a reason to flatten locally. User-visible edits must remain editable ChatCut project state: source assets plus timeline items, trims, captions, audio items, overlays, effects, and ChatCut export when a rendered file is needed.
Capture flows remain connector-only; do not ask the browser/editor tab to capture as a substitute.
ChatCut native internal chat components do not render directly in this host. Convert those moments into ordinary chat or the
widget-forms
Claude Code adapter.
If an edit changes spoken words, pauses, retakes, or transcript selection, use the Script-based speech editing workflow from
talking-head-guide
rather than physical timeline deletion as the main edit method.
When captions are enabled, complete one coherent stage of timeline or transcript work before refreshing them: after batched
apply_script
,
clean_script
, or
manage_transcript
with
action:"fix"
calls, run
edit_captions
with
action:"refresh"
once before caption-specific edits or claiming caption correctness. Do not refresh between individual mutations or when captions are disabled; honor a tool-returned caption-refresh notice at the next completed work boundary.
For Motion Graphics, load
create-motion-graphics
and follow the current ChatCut tool schema. Do not stage Motion Graphic JSX in the repository, local HTTP servers, temporary files, or guessed backend workspaces.
Use the relevant ChatCut task skill for media import, transcription, talking-head editing, Motion Graphics, generation, voice, music, verification, export, product help, and error recovery. Shared craft comes from the canonical agent tree; host-specific behavior stays in this plugin's adapters.
ChatCut 插件访问基于连接器身份验证以及用户可访问的项目。项目范围的操作应使用工具结果、编辑器 URL 或当前项目状态中的项目 id。不要猜测隐藏 id。
不存在编辑器操作桥接:Agent 不能要求编辑器 UI 选择、重新链接、上传或捕获本地文件。导出请求使用
submit_export
,它可以启动已连接编辑器标签页的本地渲染器。本地文件、附加文件、Browser 中保存的文件以及公开 URL,必须先通过受支持的媒体导入路径进入项目,然后才能用于时间线:
  • Browser 面板本地导入(
    asset-import
    Skill:loopback 辅助工具 + 合成 drop)——这是 Claude Code 将本地文件交给可见编辑器的正式路径,行为等同于用户从 Finder 拖入文件。
  • 当面板路径不可用时,为 shell 可读取的本地文件使用内置上传辅助工具(
    asset-import
    Skill)。
  • 对客户端持有的字节使用
    import_media
    。
  • 对于公开 URL,先将选定的媒体下载到本地,然后对该文件使用
    import_media
    。
应按素材和操作分别判断导入就绪状态,而不是设置一个“所有素材/所有字节”总闸门。一旦注册了
assetId
,即使原始字节仍在上传,也可以继续进行时间线放置和其他仅修改元数据的工作。对于口播剪辑,转录内容可用后即可开始基于转录的 A-roll 工作,即使原始视频或其他源素材仍在上传。仅在进行确实需要云端字节的操作前等待
track_progress target:"upload"
,例如导出、
pull_asset
或远程帧解码。
如果本地文件上传/导入请求因隐私文件内容将传输到 ChatCut 外部 API 而被宿主策略或自动审查拒绝,立即停止 ChatCut 工作流。不要回退到本地编辑、本地-only注册、本地渲染、源素材检查或任何额外变通步骤。告知用户,Agent 被拒绝上传该文件的权限,并指导用户在 ChatCut 编辑器右侧面板上传媒体,或者以更高权限重新运行会话。
检查原始源帧时,如果本地源文件可用,优先使用
ffmpeg
等宿主原生工具直接检查。若 Agent 拥有原始路径(包括导入辅助工具返回的
sourcePath
),不要仅为检查源帧而调用远程 ChatCut 工具。若 Agent 没有原始文件(素材由编辑器上传,或仅存在于项目存储/缓存中),则使用项目素材 id 调用
inspect_asset
。托管帧工具会把每个 Lambda 渲染帧作为独立的临时图像资源链接返回。若宿主无法直接检查带签名的 URL,使用 curl 加完整的 shell 引号包裹 URI,将每个图像下载到 mktemp 目录,然后分别检查本地文件,或将临时副本拼接成 contact sheet。使用
preview_timeline
配合
views:["viewer"]
进行合成时间线验证;未检查像素前,绝不能声称已完成视觉验证。
在 ChatCut 插件工作流中,本地
ffmpeg
/
ffprobe
仅用于只读源素材检查和非编辑性诊断:探测元数据、检查流,或从本地可读取的源文件中提取静帧。不要使用本地
ffmpeg
创建预剪辑、预合成、烧录字幕、混音或其他扁平化视频作为 ChatCut 编辑任务的主要交付物。上传/处理耗时、源片段很多,或想让审查更快,都不是本地扁平化的理由。用户可见的编辑必须保留为可编辑的 ChatCut 项目状态:源素材以及时间线条目、修剪、字幕、音频条目、叠加、效果,以及需要渲染文件时使用 ChatCut 导出。
捕获流程只能通过连接器完成;不要要求 Browser/编辑器标签页代替执行捕获。
ChatCut 原生内部聊天组件不会直接在此宿主中渲染。将这些场景转换为普通聊天或
widget-forms
Claude Code 适配器。
如果编辑改变了 spoken words、pauses、retakes 或 transcript selection,使用
talking-head-guide
中基于 Script 的语音编辑工作流,而不是将物理删除时间线作为主要编辑方法。
启用字幕后,在刷新字幕前先完成一个连贯的时间线或转录处理阶段:在批量执行
apply_script
、
clean_script
或带
action:"fix"
的
manage_transcript
后,在进行字幕专项编辑或声称字幕正确前,运行一次
edit_captions
的
action:"refresh"
。不要在每次单独修改之间刷新,也不要在字幕关闭时刷新;遵循工具返回的字幕刷新通知,在下一个完整工作边界执行。
对于 Motion Graphics,加载
create-motion-graphics
,并遵循当前 ChatCut 工具 schema。不要在代码仓库、本地 HTTP 服务器、临时文件或猜测的后端工作区中暂存 Motion Graphic JSX。
针对媒体导入、转录、口播剪辑、Motion Graphics、生成、声音、音乐、验证、导出、产品帮助和错误恢复,使用相应的 ChatCut 任务 Skill。共享 craft 来自标准 Agent 目录;宿主特定行为保留在本插件的适配器中。