← AixcutCONTENT HISTORY

Update to Aixcut

Snapshot Nov 24, 2026 · 12:12 UTC · version 0.8.4

Collection source: downloaded plugin package.

WHAT CHANGED

Instructions updated for aixcut-timeline-editing

Full description — Now says: Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export. Chinese triggers:...

Observed in instructions or declared skills. Runtime behavior has not been tested.

Save Aixcut and check future changes in Following.

Up to 3 plugins free · no card required.

All fields and original values.

Full description

Before

Nov 6, 2026 · 07:28 UTC

Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export.

After

Nov 24, 2026 · 12:12 UTC

Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export. Chinese triggers: 剪切、拼接、裁剪、删除片段、加文字、加音乐、轨道、画布、上传素材.

Skill instructions

Before

Nov 6, 2026 · 07:28 UTC

export." 4. Read affected views after a successful write; use `aixcut_review` when structure or visual placement needs confirmation. - Send one call per action and track, not one call per element: pass the whole set through `items[]`, or...

After

Nov 24, 2026 · 12:12 UTC

export. Chinese triggers: 剪切、拼接、裁剪、删除片段、加文字、加音乐、轨道、画布、上传素材." 4. Read affected views after a successful write; use `aixcut_review(view="timeline")` or `aixcut_review(view="renderability")` when structure or visual placement needs confirma...

Supporting files

Before

Nov 6, 2026 · 07:28 UTC

[{"relative_path":"references/actions.md","size_in_bytes":13622},{"relative_path":"references/frontend-actions.md","size_in_bytes":6297}]

After

Nov 24, 2026 · 12:12 UTC

[{"relative_path":"references/actions.md","size_in_bytes":23750},{"relative_path":"references/frontend-actions.md","size_in_bytes":6934}]

Compare saved observations

Download comparison JSON

SKILL.md text changes

− removed · + added

--- before
+++ after
@@ -1,6 +1,6 @@
 ---
 name: aixcut-timeline-editing
-description: "Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export."
+description: "Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export. Chinese triggers: 剪切、拼接、裁剪、删除片段、加文字、加音乐、轨道、画布、上传素材."
 ---
 
 # Aixcut Timeline Editing
@@ -18,21 +18,27 @@
 1. Read every view needed for the requested edit and use only stable returned refs; never guess IDs.
 2. Create a fresh UUID v4 `idempotency_key` for each new write intent.
 3. Call the narrowest Tool and action matching the intent.
-4. Read affected views after a successful write; use `aixcut_review` when structure or visual placement needs confirmation.
+4. Read affected views after a successful write; use `aixcut_review(view="timeline")` or `aixcut_review(view="renderability")` when structure or visual placement needs confirmation.
 5. Report the actual result fields when present: `status`, `mutation_id`, `operation_id`, `revision_after`, `created`, `removed`, `ref_map`, and `warnings`.
+6. After the requested edit passes final verification, invoke `aixcut-export` when the user requests a deliverable. Do not duplicate an export already owned by `aixcut-video-assembly`.
 
 ### Batching writes
 
-- Send one call per action and track, not one call per element: pass the whole set through `items[]`, or every target through `targets`, in that single call. `aixcut_clip`, `aixcut_text`, `aixcut_audio`, and `aixcut_primary` accept lists.
+- Send one call per published action and track, not one call per element: pass the whole set through `items[]`, or every target through `targets`, in that single call. The add/set operations accept lists.
+- `aixcut_layout(action="update")` accepts exactly one `target`. For a batch of picture clips, use `aixcut_layout(action="set")` with `items[]`; never put `items` on `update`.
 - Never issue one call per clip, per label, or per segment when one supported call can carry the batch.
 - Never merge different actions, different tracks, or different domains into one call; only the live Tool Schema decides what may be combined.
 - Do not run structural writes on the same timeline concurrently.
+- After each write, treat the returned `revision_after` as the next revision. Derived caption writes may advance it even when the root write succeeded.
+- `aixcut_arrange(action="close_gaps")` moves linked tracks. Use it only after the primary structure is frozen, then reread speech and captions because their positions may have changed.
 - Reuse the last read while the timeline is unchanged; reread before a position-dependent command and after each atomic batch.
 
 ## Multiple timelines and versions
 
 - For versions, A/B variants, aspect-ratio adaptations, or “keep the original and make another”, call `aixcut_timeline(action="list")` first.
 - Create a new version with `aixcut_timeline(action="duplicate", source_timeline_id=...)`; use `create` only when the user explicitly wants a blank timeline.
+- When creating a timeline, pass the requested or source-derived aspect ratio/frame rate in the create call. Do not create a default-shaped timeline and correct it after content is placed.
+- Creating or duplicating a timeline does not by itself switch the visible Project page. After the write, require `data.active_timeline_id` to equal the new `timeline_id`; if it is absent, or the result warns `TIMELINE_ACTIVATION_DEFERRED`, call `aixcut_frontend(action="activate_timeline", timeline_id=...)` and verify the returned `status` is `ready` before saying the user is working in the new version.
 - After selecting a `timeline_id`, include it in every later read, edit, capture, and review for that version. Do not mix refs across timelines.
 - Do not create an extra timeline for a single-version request.
 
@@ -40,23 +46,32 @@
 
 | Intent | Tool |
 | --- | --- |
-| Read or review | `aixcut_read`, `aixcut_review` |
-| Main video sequence | `aixcut_primary` |
-| Voice segments | `aixcut_speech` |
-| Video, image, or Motion Graph clips | `aixcut_clip` |
-| Regular on-screen text | `aixcut_text` |
-| Music, effects, or placed voice audio | `aixcut_audio` |
-| Tracks | `aixcut_track` |
-| Canvas or full cleanup | `aixcut_project` |
-| Remote browser actions | `aixcut_frontend` |
+| Read or review | `aixcut_read(view="timeline")`, `aixcut_review(view="timeline")` |
+| Main video sequence | `aixcut_primary(action="add")`, `aixcut_primary(action="replace")` |
+| Voice segments | `aixcut_speech(action="set")`, `aixcut_speech(action="trim")` |
+| Video, image, or Motion Graph clips | `aixcut_clip(action="add")`, `aixcut_clip(action="update")` |
+| Regular on-screen text | `aixcut_text(action="add")`, `aixcut_text(action="update")` |
+| Music, effects, or placed voice audio | `aixcut_audio(action="add")`, `aixcut_audio(action="update")` |
+| Canvas placement of picture clips | `aixcut_layout(action="update")`, `aixcut_layout(action="set")` |
+| Text and caption styling | `aixcut_style(action="update")`, `aixcut_style(action="set")` |
+| Batch delete, copy, move, gaps and playhead trims | `aixcut_arrange(action="delete")`, `aixcut_arrange(action="move")` |
+| Tracks | `aixcut_track(action="ensure")`, `aixcut_track(action="update")` |
+| Versions and timelines | `aixcut_timeline(action="list")`, `aixcut_timeline(action="duplicate")` |
+| Canvas or full cleanup | `aixcut_project(action="canvas")`, `aixcut_project(action="clear")` |
+| Remote browser actions | `aixcut_frontend(action="page_status")`, `aixcut_frontend(action="capture_timeline_frames")` |
+| Upload a file the Agent itself holds | `aixcut_media(action="prepare_upload")`, `aixcut_media(action="complete_upload")` |
+| Upload when no headed browser or bridge can start | `aixcut_upload_link(action="create")`, `aixcut_upload_link(action="status")` |
 
-Send only fields declared by the selected Tool Schema. `aixcut_speech` edits the main voice track; `aixcut_text` does not edit captions. After a structural change, reread before issuing a position-dependent command.
+Send only fields declared by the selected Tool Schema. Speech operations edit the main voice track; text operations do not edit captions. After a structural change, reread before issuing a position-dependent command.
+
+Writable clip kinds are `video`, `audio`, `text`, `motion-graph`, and `effect`. Images use `kind="video"`; do not create `graphic` or `composition`, because the editor cannot project, capture, or render those public MCP inputs.
 
 ## Keep visual layers separate
 
 - The caption track is only for text that follows spoken words. Ingredient labels, arrows, circles, callouts, titles, and other visual annotations are not captions.
-- Add static or editable text annotations with `aixcut_text` on a non-caption text track. For an existing Motion Graph asset, add it with `aixcut_clip` on a video overlay track and set that item's `kind` to `motion-graph`; the default `video` kind rejects Motion Graph media. Never target a text or caption track with a Motion Graph.
+- Add static or editable text annotations with `aixcut_text(action="add")` on a non-caption text track. For an existing Motion Graph asset, add it with `aixcut_clip(action="add")` on a video overlay track and set that item's `kind` to `motion-graph`; the default `video` kind rejects Motion Graph media. Never target a text or caption track with a Motion Graph.
 - Before adding an annotation, read the track list and choose a track whose kind matches the asset. After the write, read back the clip kind and track. If placement fails or lands on the wrong layer, correct or move the requested element; do not silently delete it or count subtitles as a replacement.
+- Before placing a caption plate, badge, sticker, or CTA, define the intended stacking and safe zones. At every overlapping time, the plate must remain below caption text and must not cover a higher-priority overlay; verify the composed frame after the layer order is final.
 - If no supported asset or operation can create the requested animation, report that limitation and preserve it as unfinished work; do not substitute a caption or claim the animation is complete.
 
 ### Motion Graph placement protocol
@@ -65,35 +80,46 @@
 
 1. Read `aixcut_read(view="timeline")` and inspect each track's `kind`, `role`, and stable ref. A `role=caption` track is reserved for spoken or user-supplied subtitle text.
 2. If the required layer is missing, ensure it before adding content: use `aixcut_track(action="ensure", kind="text", role="art-text", name="Art Text")` for static labels and `aixcut_track(action="ensure", kind="video", role="overlay", name="Motion Graphics")` for animated labels, arrows, circles, and other Motion Graphs.
-3. Always pass the returned explicit track ref. Never omit `track` and never rely on the first text or video track. Use `aixcut_text` only for static art text; use `aixcut_clip` with `kind="motion-graph"` and the explicit video overlay track for an existing Motion Graph asset.
-4. Read `timeline` immediately after each annotation write. Confirm the new clip's source, `kind`, `track_id`, and the track's non-caption role before continuing to voice, captions, or export.
+3. Always pass the returned explicit track ref. Never omit `track` and never rely on the first text or video track. Use `aixcut_text(action="add")` only for static art text; use `aixcut_clip(action="add")` with `kind="motion-graph"` and the explicit video overlay track for an existing Motion Graph asset.
+4. Read `timeline` immediately after each annotation write. Confirm the new clip's source, `kind`, `track_id`, and the track's non-caption role before continuing to the next requested stage. Export is never part of this step.
 5. If an annotation landed on the wrong track, move or correct it with the appropriate clip action and reread. Never delete the requested annotation to hide a placement error, and never count a caption as its replacement.
 
 ## Idempotency and result states
 
 - Treat `applied`, `noop`, and `applied_with_warning` according to their literal meanings.
+- `created` contains typed entries `{ id, ref, type }`. A caption or text write can create both clip rows and component rows, so count the `clip:` entries when reporting actual clips.
 - `duplicate: true` means the UUID replayed an earlier successful write and did not add another change.
 - For `status_unknown`, preserve every original parameter and reuse the same UUID.
 - Never reuse a UUID for different parameters or intent. A same-key retry against the same project, timeline and action is treated as a replay (`duplicate: true`) even when the re-planned payload drifted; `NLE_IDEMPOTENCY_CONFLICT` means the key was reused for a different target, so check the timeline before redoing with a fresh UUID.
 
 ## Canvas, audio, and tracks
 
-- A new Project may start at `0×0`. The first visual write chooses the source dimensions; if none are available, the server falls back to `1920×1080` and returns `MCP_CANVAS_DEFAULTED`. Use `aixcut_project action=canvas` for an explicit portrait or other ratio.
-- Add music, effects, or rendered voice through `aixcut_audio`. Use `fade` with `fade_in_ms` and `fade_out_ms` for music, and lower music `volume` to about 0.2–0.4 when narration must remain clear.
-- Before adding audio, ensure an audio track exists with `aixcut_track action=ensure`. If read-back reports `MCP_TRACK_ENSURE_NOT_APPLIED`, retry once with a new UUID.
+- A new Project may start at `0×0`. The first visual write chooses the source dimensions; if none are available, the server falls back to `1920×1080` and returns `MCP_CANVAS_DEFAULTED`. Use `aixcut_project(action="canvas")` for an explicit portrait or other ratio.
+- Canvas presets are `landscape|fhd|fullhd|1080p` = 1920×1080, `portrait|vertical` = 1080×1920, `square` = 1080×1080, `hd|720p` = 1280×720, and `uhd|4k` = 3840×2160. An unknown preset returns `MCP_CANVAS_PRESET_INVALID`; it is never silently ignored. `aixcut_timeline(action="create")` does not accept canvas fields; create first, then call `aixcut_timeline(action="update", ...)`.
+- `aixcut_read` clip-list views (`clips`, `captions`, `text`, `audio`) accept top-level `track` and `kind` filters, and also the legacy nested `filters.track_id` and `filters.kind` forms. The top-level form is preferred.
+- A caption `update` that only changes clip columns such as `start_ms` or `duration_ms` does not require text component values. Add `text`, `style`, `x`, or `y` only when the component itself must change.
+- Add music, effects, or rendered voice through `aixcut_audio(action="add")`. Use `fade_in_ms` and `fade_out_ms` for music. Volume is not an add field: after adding, read the created clip ref and call `aixcut_audio(action="update", target="clip:...", volume=0.2–0.4)` when narration must remain clear.
+- When the user wants a video's original sound separately, call `aixcut_frontend(action="media.extract_audio", params={media_id: ..., expected_file_revision: ...})`, then poll `aixcut_frontend(action="operation.get", params={operation_id: ...})` until it succeeds, and add the resulting published audio media. Never send a video media ref directly to `aixcut_audio(action="add")`.
+- Before adding audio, ensure an audio track exists with `aixcut_track(action="ensure")`. If read-back reports `MCP_TRACK_ENSURE_NOT_APPLIED`, retry once with a new UUID.
 - Change track mute or enabled state only after reading the current track state.
 
 ### Audio roles and write boundaries
 
 Original/source audio or narration, AI-generated voice, BGM/music, and SFX/sound effects are different audio roles. Keep each role on its separate dedicated track; never treat an AI voice clip as a replacement for original audio unless replacement was explicitly requested.
 
+Sound can carry a scene across visual cuts. Let an existing voice, room tone, or music continue when it supports the thought; do not restart BGM or add a new sound effect at every cut. Trim or fade music to the real content end, keep every instance inside its source range, and use a separate audio clip when a J/L-cut or a cross-shot bed is intentional. A natural loop requires a known loop point or actual listening evidence; a duration match alone is not proof.
+
+Add a short sound effect only when it makes an action, transition, or result easier to understand or feel. Do not duplicate a click, whoosh, or impact for every caption or edit point. Before adding one, identify the visual event, the sound's meaningful sync point, and the dedicated SFX track; place the clip so that the embedded sync point lands on the event, then read back its range and listen with the dialogue. If no suitable source or listening evidence exists, report the sound effect as unverified instead of treating its presence as a quality pass.
+
 Before every audio write, read the current timeline and track list, then confirm the target track and the intended start/end range. Read the source audio and existing voice state when deciding whether a human voice already covers that range. Reuse a correct existing narration for edit-only requests and skip new voice placement; this prevents double voice or overlapping narration.
 
-Only add BGM/music when it is explicitly enabled, requested, or confirmed. When music is enabled, place it on its own track with both fade-in and fade-out, and lower its volume (about `0.2–0.4`) under voice or narration. Leave optional or unmentioned music off until confirmation. SFX follows the same separate-track and range-confirmation rule.
+Before muting a video item's source audio, inspect its component roster. If the item has no `audio` component or audio payload, it has nothing to mute: report the structural fact and do not call `aixcut_audio(action="update")` or guess an audio ref. Video-only B-roll does not require a mute write.
+
+Only add BGM/music when it is explicitly enabled, requested, or confirmed. When music is enabled, place it on its own track with both fade-in and fade-out; after read-back, lower its volume through `aixcut_audio(action="update", target="clip:...", volume=0.2–0.4)` under voice or narration. Leave optional or unmentioned music off until confirmation. SFX follows the same separate-track and range-confirmation rule.
 
 ## Local media
 
-There are two supported import paths. Both are asynchronous and an accepted response does not mean that the media is ready.
+There are three supported import paths. All are asynchronous and an accepted response does not mean that the media is ready.
 
 ### Ask the user to upload
 
@@ -107,20 +133,20 @@
 
 ### Import an explicit local path
 
-When the user gives local paths, start or reuse the bridge yourself before importing; do not ask the user to start it. Locate the plugin helper and use the Site origin from the connected MCP Server instructions. If either is unavailable, report that specific setup blocker instead of running an incomplete command.
+When the user gives local paths, start or reuse the bridge yourself before importing; do not ask the user to start it. Use the target Project page/editor origin, not the marketing website origin. Prefer the `Bridge allowed origin` from the connected MCP Server instructions and require it to match the current Project page origin when available. If either is unavailable, report that specific setup blocker instead of running an incomplete command.
 
 ```bash
 BRIDGE=$(find ~/.codex/plugins -maxdepth 6 -name local-media-bridge.mjs 2>/dev/null | head -1)
-node "$BRIDGE" /absolute/path/a.mp4 /absolute/path/b.mp4 --allowed-origin "<MCP Server Site origin>"
+node "$BRIDGE" /absolute/path/a.mp4 /absolute/path/b.mp4 --allowed-origin "<Project editor origin>"
 ```
 
 The helper checks an existing bridge's health or starts a new one, waits until it is ready, and only then returns URLs. Do not call `aixcut_frontend(action="import_local_media")` until this command succeeds. Never invent the origin, URL, or port. The helper manages its own background process and port, reuses a running bridge when possible, and expires after its TTL; do not wrap it in `screen`, `nohup`, or `&`.
 
-If stale state remains after a crashed bridge, use `--no-reuse` on the helper command to start a fresh bridge. Use it only for recovery; old bridge URLs may stop working.
+If the helper command fails, inspect its exact error and the reported log file before deciding what to do. If import reports the bridge unreachable, first verify that the bridge's allowed origin matches the target Project page/editor origin. When it does not match, rerun the helper with `--no-reuse --allowed-origin <project-editor-origin>` and retry the failed import once with the new URLs. Do not ask the user to start the bridge or switch to manual upload after the first failure. Retry the same helper command once for a transient startup or health failure; it will recheck/restart the bridge. Do not retry missing files, unreadable paths, a missing editor origin, or a missing helper—report the specific blocker. Offer manual upload only after the bounded retry fails or a required local capability is unavailable, and explain why.
 
-If the helper command fails, inspect its exact error and the reported log file before deciding what to do. Do not ask the user to start the bridge or switch to manual upload after the first failure. Retry the same helper command once for a transient startup or health failure; it will recheck/restart the bridge. Do not retry missing files, unreadable paths, a missing Site origin, or a missing helper—report the specific blocker. Offer manual upload only after the bounded retry fails or a required local capability is unavailable, and explain why.
+After the helper succeeds, use the printed `files[].url` values in one `aixcut_frontend(action="import_local_media")` call, with `url` for one file or `urls` for up to eight. A ready bridge does not prove the Project page can fetch it. If import reports bridge-unreachable or URL failures, rerun the helper for only the failed files and retry those once with the new URLs.
 
-After the helper succeeds, use the printed `files[].url` values in one `aixcut_frontend(action="import_local_media")` call, with `url` for one file or `urls` for up to eight. A ready bridge does not prove the Project page can fetch it. If import reports bridge-unreachable or URL failures, rerun the helper for only the failed files and retry those once with the new URLs. Report only files that still fail; offer manual upload only after that recovery fails.
+Try to start the headed browser and bridge yourself. Only after that startup or connection fails, or the required local capability is unavailable, use the temporary upload-link path below. Do not ask the user to choose between the bridge and an upload link.
 
 The response includes `import_ids`. Poll only those IDs with `import_status`. Follow `next_action.after_seconds`; do not re-import while an item is running. An item is settled only when its status is `ready`, `failed`, or `cancelled`, and its `private_copy` is no longer `copying`.
 
@@ -133,13 +159,34 @@
 
 For `prompt_add_material`, there is no `import_id`. After the user says the upload is complete, reread `sources` and match by filename. If it has not appeared, wait about 15 seconds and reread; never reopen the prompt to confirm the same upload.
 
+### Upload through a temporary link
+
+Use this only when the current environment cannot start or connect the headed browser and local media bridge. This is an automatic fallback, not a user-selected upload mode.
+
+1. Call `aixcut_upload_link(action="create")`.
+2. Present the returned `upload_url` as a link. If the host supports QR rendering, use the same URL as the QR payload; otherwise show the link. Never rewrite, shorten, or expose its token separately.
+3. After the user says the files were sent, call `aixcut_upload_link(action="status", upload_id=...)` and follow the same upload link until every accepted file is terminal. Do not create another link just to check progress.
+4. Match each successful `media_id` or `filename` in `aixcut_read(view="sources")` before continuing the original edit.
+
+Use `renew` only when the same link is expiring and the user still needs it. Use `revoke` only when the user asks to close it.
+
 Local video does not require a complete server-side video copy. The browser keeps the original and sends extracted audio for transcription; use `capture_source_frames` or `capture_timeline_frames` for visual evidence. If `CAPTURE_PERMISSION_REQUIRED` occurs, ask the user to click the Project page once and retry the original capture. If the bridge is unreachable, follow the bounded recovery above: rerun the helper for a fresh URL and retry once before offering the manual upload path.
 
+### Upload directly from the Agent
+
+Use this when the Agent itself holds the file and no Project page is needed. It is the only path that does not require the user to pick the file in the browser.
+
+1. Compute the file's SHA-256 and call `aixcut_media(action="prepare_upload")` with `file_name`, `mime_type`, `byte_size`, and that `source_fingerprint`. The call returns a short-lived presigned PUT URL plus a `session_id` and `file_id`.
+2. PUT the exact same bytes to that URL with an HTTP client such as `curl`. The MCP server never receives the media.
+3. Call `aixcut_media(action="complete_upload")` with the returned `session_id` and `file_id`, then poll `aixcut_media(action="upload_status", session_id=...)` until ingestion settles.
+
+The URL is not renewed automatically. If the PUT has not succeeded and the URL expires or returns 403, call `prepare_upload` again with the same metadata and fingerprint; if the PUT succeeded, call `complete_upload` with the original ids instead of re-preparing.
+
 ## Captures and visual placement
 
 Use `capture_source_frames` or `capture_timeline_frames` when visual evidence is needed. The result returns temporary JPEG URLs in `result.data.artifacts`. To save them locally, pass the exact JSON Tool result through stdin to `scripts/download-capture-artifacts.mjs <output-directory>`. Report a local path only after the helper succeeds; the remote MCP server does not write files to the local machine.
 
-For `aixcut_clip(action="layout")`, provide exactly one of `preset` or `box`. `box` uses 0–1 canvas ratios; `fit` is `contain`, `cover`, `fill`, or `none`; `opacity` is 0–1. After changing layout, capture one timeline frame and match each composition entry to its ref. Skip capture only when the final visible composition is unchanged; timing edits that change the visible image, subtitle placement or layer relationship require affected timeline frames. Volume and fades need audio evidence; without listening, audio quality is unjudgeable.
+For `aixcut_layout(action="update")`, provide exactly one of `preset` or `box`. `box` uses 0–1 canvas ratios; `fit` is `contain`, `cover`, `fill`, or `none`; `opacity` is 0–1. Use `aixcut_layout(action="set")` with `items` for several picture clips. Never pass layout fields to `aixcut_clip`. After changing layout, capture one timeline frame and match each composition entry to its ref. Skip capture only when the final visible composition is unchanged; timing edits that change the visible image, subtitle placement or layer relationship require affected timeline frames. Volume and fades need audio evidence; without listening, audio quality is unjudgeable.
 
 The editor does not expose reliable zoom, rotation, or anchor edits. Use `box` dimensions or a supported preset instead.
 
Full technical diff · 3 changed fields

changed /description

BEFORE
"Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export."
AFTER
"Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export. Chinese triggers: 剪切、拼接、裁剪、删除片段、加文字、加音乐、轨道、画布、上传素材."

changed /included_files

BEFORE
[
  {
    "relative_path": "references/actions.md",
    "size_in_bytes": 13622
  },
  {
    "relative_path": "references/frontend-actions.md",
    "size_in_bytes": 6297
  }
]
AFTER
[
  {
    "relative_path": "references/actions.md",
    "size_in_bytes": 23750
  },
  {
    "relative_path": "references/frontend-actions.md",
    "size_in_bytes": 6934
  }
]

changed /skill_md_contents

BEFORE
"---\nname: aixcut-timeline-editing\ndescription: \"Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export.\"\n---\n\n# Aixcut Timeline Editing\n\n## Conversation guidance\n\nState what timeline change is underway and what happens next when useful. Read current state and proceed when the request is clear and safe. Ask one question only when a missing decision materially changes the edit. If a local file or browser action requires the user, name the exact action and the condition for continuing.\n\nUse the real MCP Tools. Do not use curl, hand-written JSON as a substitute for a call, direct database writes, or local files to reconstruct a result.\n\nVoice, captions, and export have dedicated Skills: `aixcut-voice`, `aixcut-captions`, and `aixcut-export`.\n\n## Minimal workflow\n\n1. Read every view needed for the requested edit and use only stable returned refs; never guess IDs.\n2. Create a fresh UUID v4 `idempotency_key` for each new write intent.\n3. Call the narrowest Tool and action matching the intent.\n4. Read affected views after a successful write; use `aixcut_review` when structure or visual placement needs confirmation.\n5. Report the actual result fields when present: `status`, `mutation_id`, `operation_id`, `revision_after`, `created`, `removed`, `ref_map`, and `warnings`.\n\n### Batching writes\n\n- Send one call per action and track, not one call per element: pass the whole set through `items[]`, or every target through `targets`, in that single call. `aixcut_clip`, `aixcut_text`, `aixcut_audio`, and `aixcut_primary` accept lists.\n- Never issue one call per clip, per label, or per segment when one supported call can carry the batch.\n- Never merge different actions, different tracks, or different domains into one call; only the live Tool Schema decides what may be combined.\n- Do not run structural writes on the same timeline concurrently.\n- Reuse the last read while the timeline is unchanged; reread before a position-dependent command and after each atomic batch.\n\n## Multiple timelines and versions\n\n- For versions, A/B variants, aspect-ratio adaptations, or “keep the original and make another”, call `aixcut_timeline(action=\"list\")` first.\n- Create a new version with `aixcut_timeline(action=\"duplicate\", source_timeline_id=...)`; use `create` only when the user explicitly wants a blank timeline.\n- After selecting a `timeline_id`, include it in every later read, edit, capture, and review for that version. Do not mix refs across timelines.\n- Do not create an extra timeline for a single-version request.\n\n## Tool selection\n\n| Intent | Tool |\n| --- | --- |\n| Read or review | `aixcut_read`, `aixcut_review` |\n| Main video sequence | `aixcut_primary` |\n| Voice segments | `aixcut_speech` |\n| Video, image, or Motion Graph clips | `aixcut_clip` |\n| Regular on-screen text | `aixcut_text` |\n| Music, effects, or placed voice audio | `aixcut_audio` |\n| Tracks | `aixcut_track` |\n| Canvas or full cleanup | `aixcut_project` |\n| Remote browser actions | `aixcut_frontend` |\n\nSend only fields declared by the selected Tool Schema. `aixcut_speech` edits the main voice track; `aixcut_text` does not edit captions. After a structural change, reread before issuing a position-dependent command.\n\n## Keep visual layers separate\n\n- The caption track is only for text that follows spoken words. Ingredient labels, arrows, circles, callouts, titles, and other visual annotations are not captions.\n- Add static or editable text annotations with `aixcut_text` on a non-caption text track. For an existing Motion Graph asset, add it with `aixcut_clip` on a video overlay track and set that item's `kind` to `motion-graph`; the default `video` kind rejects Motion Graph media. Never target a text or caption track with a Motion Graph.\n- Before adding an annotation, read the track list and choose a track whose kind matches the asset. After the write, read back the clip kind and track. If placement fails or lands on the wrong layer, correct or move the requested element; do not silently delete it or count subtitles as a replacement.\n- If no supported asset or operation can create the requested animation, report that limitation and preserve it as unfinished work; do not substitute a caption or claim the animation is complete.\n\n### Motion Graph placement protocol\n\nTreat every requested visual annotation as a typed timeline element before writing it:\n\n1. Read `aixcut_read(view=\"timeline\")` and inspect each track's `kind`, `role`, and stable ref. A `role=caption` track is reserved for spoken or user-supplied subtitle text.\n2. If the required layer is missing, ensure it before adding content: use `aixcut_track(action=\"ensure\", kind=\"text\", role=\"art-text\", name=\"Art Text\")` for static labels and `aixcut_track(action=\"ensure\", kind=\"video\", role=\"overlay\", name=\"Motion Graphics\")` for animated labels, arrows, circles, and other Motion Graphs.\n3. Always pass the returned explicit track ref. Never omit `track` and never rely on the first text or video track. Use `aixcut_text` only for static art text; use `aixcut_clip` with `kind=\"motion-graph\"` and the explicit video overlay track for an existing Motion Graph asset.\n4. Read `timeline` immediately after each annotation write. Confirm the new clip's source, `kind`, `track_id`, and the track's non-caption role before continuing to voice, captions, or export.\n5. If an annotation landed on the wrong track, move or correct it with the appropriate clip action and reread. Never delete the requested annotation to hide a placement error, and never count a caption as its replacement.\n\n## Idempotency and result states\n\n- Treat `applied`, `noop`, and `applied_with_warning` according to their literal meanings.\n- `duplicate: true` means the UUID replayed an earlier successful write and did not add another change.\n- For `status_unknown`, preserve every original parameter and reuse the same UUID.\n- Never reuse a UUID for different parameters or intent. A same-key retry against the same project, timeline and action is treated as a replay (`duplicate: true`) even when the re-planned payload drifted; `NLE_IDEMPOTENCY_CONFLICT` means the key was reused for a different target, so check the timeline before redoing with a fresh UUID.\n\n## Canvas, audio, and tracks\n\n- A new Project may start at `0×0`. The first visual write chooses the source dimensions; if none are available, the server falls back to `1920×1080` and returns `MCP_CANVAS_DEFAULTED`. Use `aixcut_project action=canvas` for an explicit portrait or other ratio.\n- Add music, effects, or rendered voice through `aixcut_audio`. Use `fade` with `fade_in_ms` and `fade_out_ms` for music, and lower music `volume` to about 0.2–0.4 when narration must remain clear.\n- Before adding audio, ensure an audio track exists with `aixcut_track action=ensure`. If read-back reports `MCP_TRACK_ENSURE_NOT_APPLIED`, retry once with a new UUID.\n- Change track mute or enabled state only after reading the current track state.\n\n### Audio roles and write boundaries\n\nOriginal/source audio or narration, AI-generated voice, BGM/music, and SFX/sound effects are different audio roles. Keep each role on its separate dedicated track; never treat an AI voice clip as a replacement for original audio unless replacement was explicitly requested.\n\nBefore every audio write, read the current timeline and track list, then confirm the target track and the intended start/end range. Read the source audio and existing voice state when deciding whether a human voice already covers that range. Reuse a correct existing narration for edit-only requests and skip new voice placement; this prevents double voice or overlapping narration.\n\nOnly add BGM/music when it is explicitly enabled, requested, or confirmed. When music is enabled, place it on its own track with both fade-in and fade-out, and lower its volume (about `0.2–0.4`) under voice or narration. Leave optional or unmentioned music off until confirmation. SFX follows the same separate-track and range-confirmation rule.\n\n## Local media\n\nThere are two supported import paths. Both are asynchronous and an accepted response does not mean that the media is ready.\n\n### Ask the user to upload\n\nCall:\n\n```json aixcut_frontend\n{\"action\":\"prompt_add_material\"}\n```\n\nA completed response means the upload area is open. Tell the user to select or drag files. After the user confirms upload, read `aixcut_read(view=\"sources\")` and match by `file_name`; do not call `prompt_add_material` again.\n\n### Import an explicit local path\n\nWhen the user gives local paths, start or reuse the bridge yourself before importing; do not ask the user to start it. Locate the plugin helper and use the Site origin from the connected MCP Server instructions. If either is unavailable, report that specific setup blocker instead of running an incomplete command.\n\n```bash\nBRIDGE=$(find ~/.codex/plugins -maxdepth 6 -name local-media-bridge.mjs 2>/dev/null | head -1)\nnode \"$BRIDGE\" /absolute/path/a.mp4 /absolute/path/b.mp4 --allowed-origin \"<MCP Server Site origin>\"\n```\n\nThe helper checks an existing bridge's health or starts a new one, waits until it is ready, and only then returns URLs. Do not call `aixcut_frontend(action=\"import_local_media\")` until this command succeeds. Never invent the origin, URL, or port. The helper manages its own background process and port, reuses a running bridge when possible, and expires after its TTL; do not wrap it in `screen`, `nohup`, or `&`.\n\nIf stale state remains after a crashed bridge, use `--no-reuse` on the helper command to start a fresh bridge. Use it only for recovery; old bridge URLs may stop working.\n\nIf the helper command fails, inspect its exact error and the reported log file before deciding what to do. Do not ask the user to start the bridge or switch to manual upload after the first failure. Retry the same helper command once for a transient startup or health failure; it will recheck/restart the bridge. Do not retry missing files, unreadable paths, a missing Site origin, or a missing helper—report the specific blocker. Offer manual upload only after the bounded retry fails or a required local capability is unavailable, and explain why.\n\nAfter the helper succeeds, use the printed `files[].url` values in one `aixcut_frontend(action=\"import_local_media\")` call, with `url` for one file or `urls` for up to eight. A ready bridge does not prove the Project page can fetch it. If import reports bridge-unreachable or URL failures, rerun the helper for only the failed files and retry those once with the new URLs. Report only files that still fail; offer manual upload only after that recovery fails.\n\nThe response includes `import_ids`. Poll only those IDs with `import_status`. Follow `next_action.after_seconds`; do not re-import while an item is running. An item is settled only when its status is `ready`, `failed`, or `cancelled`, and its `private_copy` is no longer `copying`.\n\n- On `ready`, use the returned `media_id` directly; do not search `sources` just to rediscover which source was imported.\n- On `unknown`, the page no longer tracks the import (for example, after a refresh). Reread `sources` and match by `file_name`.\n- Retry `failed` or `cancelled` only when `retryable` is `true`; otherwise report its `error_code` and `error_message`.\n- `private_copy=ok` means the complete local copy is saved. `fallback` means the media remains usable, but refresh or page export may fail to access the original; report `private_copy_reason`. Removing a clip from the timeline does not remove this copy. It is released when the source is deleted from the library or the Project is deleted.\n\nASR is independent of the file import status. Use `import_status` only until each import is settled; it is not the source of transcription status. When the user's task depends on speech or transcript text, call `aixcut_read(view=\"sources\")`, match the source by the returned `media_id`, and check its `transcript_status` and `transcription_tasks`. Active transcription states are `pending`, `queued`, `running`, `processing`, `submitted`, or `retrying`; wait briefly and reread `sources`; do not keep polling the settled import or re-import. If needed to confirm whether transcription should exist, call `aixcut_read(view=\"source\", source=media_id)` and check `has_audio`. Do not wait for ASR when there is no audio or the task only needs visual evidence. Read `source_lines` only after the matching source has `transcript_status=available`; report empty, outdated, or failed transcription instead of fabricating text or re-importing.\n\nFor `prompt_add_material`, there is no `import_id`. After the user says the upload is complete, reread `sources` and match by filename. If it has not appeared, wait about 15 seconds and reread; never reopen the prompt to confirm the same upload.\n\nLocal video does not require a complete server-side video copy. The browser keeps the original and sends extracted audio for transcription; use `capture_source_frames` or `capture_timeline_frames` for visual evidence. If `CAPTURE_PERMISSION_REQUIRED` occurs, ask the user to click the Project page once and retry the original capture. If the bridge is unreachable, follow the bounded recovery above: rerun the helper for a fresh URL and retry once before offering the manual upload path.\n\n## Captures and visual placement\n\nUse `capture_source_frames` or `capture_timeline_frames` when visual evidence is needed. The result returns temporary JPEG URLs in `result.data.artifacts`. To save them locally, pass the exact JSON Tool result through stdin to `scripts/download-capture-artifacts.mjs <output-directory>`. Report a local path only after the helper succeeds; the remote MCP server does not write files to the local machine.\n\nFor `aixcut_clip(action=\"layout\")`, provide exactly one of `preset` or `box`. `box` uses 0–1 canvas ratios; `fit` is `contain`, `cover`, `fill`, or `none`; `opacity` is 0–1. After changing layout, capture one timeline frame and match each composition entry to its ref. Skip capture only when the final visible composition is unchanged; timing edits that change the visible image, subtitle placement or layer relationship require affected timeline frames. Volume and fades need audio evidence; without listening, audio quality is unjudgeable.\n\nThe editor does not expose reliable zoom, rotation, or anchor edits. Use `box` dimensions or a supported preset instead.\n\n## Content language\n\nTool and workflow terms stay in English. Explain confirmations in the user's current conversation language. Text added to the timeline, including overlays and titles, follows the user's requested content or target-audience language; do not infer English from this Skill.\n\n## Authentication and failures\n\nThe Codex Host handles OAuth. Do not call `aixcut_login` first or bypass permissions. For stable error-code recovery, load `aixcut-known-errors`. Report real status and read-back evidence.\n\nParameter details are in [references/actions.md](references/actions.md).\n"
AFTER
"---\nname: aixcut-timeline-editing\ndescription: \"Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export. Chinese triggers: 剪切、拼接、裁剪、删除片段、加文字、加音乐、轨道、画布、上传素材.\"\n---\n\n# Aixcut Timeline Editing\n\n## Conversation guidance\n\nState what timeline change is underway and what happens next when useful. Read current state and proceed when the request is clear and safe. Ask one question only when a missing decision materially changes the edit. If a local file or browser action requires the user, name the exact action and the condition for continuing.\n\nUse the real MCP Tools. Do not use curl, hand-written JSON as a substitute for a call, direct database writes, or local files to reconstruct a result.\n\nVoice, captions, and export have dedicated Skills: `aixcut-voice`, `aixcut-captions`, and `aixcut-export`.\n\n## Minimal workflow\n\n1. Read every view needed for the requested edit and use only stable returned refs; never guess IDs.\n2. Create a fresh UUID v4 `idempotency_key` for each new write intent.\n3. Call the narrowest Tool and action matching the intent.\n4. Read affected views after a successful write; use `aixcut_review(view=\"timeline\")` or `aixcut_review(view=\"renderability\")` when structure or visual placement needs confirmation.\n5. Report the actual result fields when present: `status`, `mutation_id`, `operation_id`, `revision_after`, `created`, `removed`, `ref_map`, and `warnings`.\n6. After the requested edit passes final verification, invoke `aixcut-export` when the user requests a deliverable. Do not duplicate an export already owned by `aixcut-video-assembly`.\n\n### Batching writes\n\n- Send one call per published action and track, not one call per element: pass the whole set through `items[]`, or every target through `targets`, in that single call. The add/set operations accept lists.\n- `aixcut_layout(action=\"update\")` accepts exactly one `target`. For a batch of picture clips, use `aixcut_layout(action=\"set\")` with `items[]`; never put `items` on `update`.\n- Never issue one call per clip, per label, or per segment when one supported call can carry the batch.\n- Never merge different actions, different tracks, or different domains into one call; only the live Tool Schema decides what may be combined.\n- Do not run structural writes on the same timeline concurrently.\n- After each write, treat the returned `revision_after` as the next revision. Derived caption writes may advance it even when the root write succeeded.\n- `aixcut_arrange(action=\"close_gaps\")` moves linked tracks. Use it only after the primary structure is frozen, then reread speech and captions because their positions may have changed.\n- Reuse the last read while the timeline is unchanged; reread before a position-dependent command and after each atomic batch.\n\n## Multiple timelines and versions\n\n- For versions, A/B variants, aspect-ratio adaptations, or “keep the original and make another”, call `aixcut_timeline(action=\"list\")` first.\n- Create a new version with `aixcut_timeline(action=\"duplicate\", source_timeline_id=...)`; use `create` only when the user explicitly wants a blank timeline.\n- When creating a timeline, pass the requested or source-derived aspect ratio/frame rate in the create call. Do not create a default-shaped timeline and correct it after content is placed.\n- Creating or duplicating a timeline does not by itself switch the visible Project page. After the write, require `data.active_timeline_id` to equal the new `timeline_id`; if it is absent, or the result warns `TIMELINE_ACTIVATION_DEFERRED`, call `aixcut_frontend(action=\"activate_timeline\", timeline_id=...)` and verify the returned `status` is `ready` before saying the user is working in the new version.\n- After selecting a `timeline_id`, include it in every later read, edit, capture, and review for that version. Do not mix refs across timelines.\n- Do not create an extra timeline for a single-version request.\n\n## Tool selection\n\n| Intent | Tool |\n| --- | --- |\n| Read or review | `aixcut_read(view=\"timeline\")`, `aixcut_review(view=\"timeline\")` |\n| Main video sequence | `aixcut_primary(action=\"add\")`, `aixcut_primary(action=\"replace\")` |\n| Voice segments | `aixcut_speech(action=\"set\")`, `aixcut_speech(action=\"trim\")` |\n| Video, image, or Motion Graph clips | `aixcut_clip(action=\"add\")`, `aixcut_clip(action=\"update\")` |\n| Regular on-screen text | `aixcut_text(action=\"add\")`, `aixcut_text(action=\"update\")` |\n| Music, effects, or placed voice audio | `aixcut_audio(action=\"add\")`, `aixcut_audio(action=\"update\")` |\n| Canvas placement of picture clips | `aixcut_layout(action=\"update\")`, `aixcut_layout(action=\"set\")` |\n| Text and caption styling | `aixcut_style(action=\"update\")`, `aixcut_style(action=\"set\")` |\n| Batch delete, copy, move, gaps and playhead trims | `aixcut_arrange(action=\"delete\")`, `aixcut_arrange(action=\"move\")` |\n| Tracks | `aixcut_track(action=\"ensure\")`, `aixcut_track(action=\"update\")` |\n| Versions and timelines | `aixcut_timeline(action=\"list\")`, `aixcut_timeline(action=\"duplicate\")` |\n| Canvas or full cleanup | `aixcut_project(action=\"canvas\")`, `aixcut_project(action=\"clear\")` |\n| Remote browser actions | `aixcut_frontend(action=\"page_status\")`, `aixcut_frontend(action=\"capture_timeline_frames\")` |\n| Upload a file the Agent itself holds | `aixcut_media(action=\"prepare_upload\")`, `aixcut_media(action=\"complete_upload\")` |\n| Upload when no headed browser or bridge can start | `aixcut_upload_link(action=\"create\")`, `aixcut_upload_link(action=\"status\")` |\n\nSend only fields declared by the selected Tool Schema. Speech operations edit the main voice track; text operations do not edit captions. After a structural change, reread before issuing a position-dependent command.\n\nWritable clip kinds are `video`, `audio`, `text`, `motion-graph`, and `effect`. Images use `kind=\"video\"`; do not create `graphic` or `composition`, because the editor cannot project, capture, or render those public MCP inputs.\n\n## Keep visual layers separate\n\n- The caption track is only for text that follows spoken words. Ingredient labels, arrows, circles, callouts, titles, and other visual annotations are not captions.\n- Add static or editable text annotations with `aixcut_text(action=\"add\")` on a non-caption text track. For an existing Motion Graph asset, add it with `aixcut_clip(action=\"add\")` on a video overlay track and set that item's `kind` to `motion-graph`; the default `video` kind rejects Motion Graph media. Never target a text or caption track with a Motion Graph.\n- Before adding an annotation, read the track list and choose a track whose kind matches the asset. After the write, read back the clip kind and track. If placement fails or lands on the wrong layer, correct or move the requested element; do not silently delete it or count subtitles as a replacement.\n- Before placing a caption plate, badge, sticker, or CTA, define the intended stacking and safe zones. At every overlapping time, the plate must remain below caption text and must not cover a higher-priority overlay; verify the composed frame after the layer order is final.\n- If no supported asset or operation can create the requested animation, report that limitation and preserve it as unfinished work; do not substitute a caption or claim the animation is complete.\n\n### Motion Graph placement protocol\n\nTreat every requested visual annotation as a typed timeline element before writing it:\n\n1. Read `aixcut_read(view=\"timeline\")` and inspect each track's `kind`, `role`, and stable ref. A `role=caption` track is reserved for spoken or user-supplied subtitle text.\n2. If the required layer is missing, ensure it before adding content: use `aixcut_track(action=\"ensure\", kind=\"text\", role=\"art-text\", name=\"Art Text\")` for static labels and `aixcut_track(action=\"ensure\", kind=\"video\", role=\"overlay\", name=\"Motion Graphics\")` for animated labels, arrows, circles, and other Motion Graphs.\n3. Always pass the returned explicit track ref. Never omit `track` and never rely on the first text or video track. Use `aixcut_text(action=\"add\")` only for static art text; use `aixcut_clip(action=\"add\")` with `kind=\"motion-graph\"` and the explicit video overlay track for an existing Motion Graph asset.\n4. Read `timeline` immediately after each annotation write. Confirm the new clip's source, `kind`, `track_id`, and the track's non-caption role before continuing to the next requested stage. Export is never part of this step.\n5. If an annotation landed on the wrong track, move or correct it with the appropriate clip action and reread. Never delete the requested annotation to hide a placement error, and never count a caption as its replacement.\n\n## Idempotency and result states\n\n- Treat `applied`, `noop`, and `applied_with_warning` according to their literal meanings.\n- `created` contains typed entries `{ id, ref, type }`. A caption or text write can create both clip rows and component rows, so count the `clip:` entries when reporting actual clips.\n- `duplicate: true` means the UUID replayed an earlier successful write and did not add another change.\n- For `status_unknown`, preserve every original parameter and reuse the same UUID.\n- Never reuse a UUID for different parameters or intent. A same-key retry against the same project, timeline and action is treated as a replay (`duplicate: true`) even when the re-planned payload drifted; `NLE_IDEMPOTENCY_CONFLICT` means the key was reused for a different target, so check the timeline before redoing with a fresh UUID.\n\n## Canvas, audio, and tracks\n\n- A new Project may start at `0×0`. The first visual write chooses the source dimensions; if none are available, the server falls back to `1920×1080` and returns `MCP_CANVAS_DEFAULTED`. Use `aixcut_project(action=\"canvas\")` for an explicit portrait or other ratio.\n- Canvas presets are `landscape|fhd|fullhd|1080p` = 1920×1080, `portrait|vertical` = 1080×1920, `square` = 1080×1080, `hd|720p` = 1280×720, and `uhd|4k` = 3840×2160. An unknown preset returns `MCP_CANVAS_PRESET_INVALID`; it is never silently ignored. `aixcut_timeline(action=\"create\")` does not accept canvas fields; create first, then call `aixcut_timeline(action=\"update\", ...)`.\n- `aixcut_read` clip-list views (`clips`, `captions`, `text`, `audio`) accept top-level `track` and `kind` filters, and also the legacy nested `filters.track_id` and `filters.kind` forms. The top-level form is preferred.\n- A caption `update` that only changes clip columns such as `start_ms` or `duration_ms` does not require text component values. Add `text`, `style`, `x`, or `y` only when the component itself must change.\n- Add music, effects, or rendered voice through `aixcut_audio(action=\"add\")`. Use `fade_in_ms` and `fade_out_ms` for music. Volume is not an add field: after adding, read the created clip ref and call `aixcut_audio(action=\"update\", target=\"clip:...\", volume=0.2–0.4)` when narration must remain clear.\n- When the user wants a video's original sound separately, call `aixcut_frontend(action=\"media.extract_audio\", params={media_id: ..., expected_file_revision: ...})`, then poll `aixcut_frontend(action=\"operation.get\", params={operation_id: ...})` until it succeeds, and add the resulting published audio media. Never send a video media ref directly to `aixcut_audio(action=\"add\")`.\n- Before adding audio, ensure an audio track exists with `aixcut_track(action=\"ensure\")`. If read-back reports `MCP_TRACK_ENSURE_NOT_APPLIED`, retry once with a new UUID.\n- Change track mute or enabled state only after reading the current track state.\n\n### Audio roles and write boundaries\n\nOriginal/source audio or narration, AI-generated voice, BGM/music, and SFX/sound effects are different audio roles. Keep each role on its separate dedicated track; never treat an AI voice clip as a replacement for original audio unless replacement was explicitly requested.\n\nSound can carry a scene across visual cuts. Let an existing voice, room tone, or music continue when it supports the thought; do not restart BGM or add a new sound effect at every cut. Trim or fade music to the real content end, keep every instance inside its source range, and use a separate audio clip when a J/L-cut or a cross-shot bed is intentional. A natural loop requires a known loop point or actual listening evidence; a duration match alone is not proof.\n\nAdd a short sound effect only when it makes an action, transition, or result easier to understand or feel. Do not duplicate a click, whoosh, or impact for every caption or edit point. Before adding one, identify the visual event, the sound's meaningful sync point, and the dedicated SFX track; place the clip so that the embedded sync point lands on the event, then read back its range and listen with the dialogue. If no suitable source or listening evidence exists, report the sound effect as unverified instead of treating its presence as a quality pass.\n\nBefore every audio write, read the current timeline and track list, then confirm the target track and the intended start/end range. Read the source audio and existing voice state when deciding whether a human voice already covers that range. Reuse a correct existing narration for edit-only requests and skip new voice placement; this prevents double voice or overlapping narration.\n\nBefore muting a video item's source audio, inspect its component roster. If the item has no `audio` component or audio payload, it has nothing to mute: report the structural fact and do not call `aixcut_audio(action=\"update\")` or guess an audio ref. Video-only B-roll does not require a mute write.\n\nOnly add BGM/music when it is explicitly enabled, requested, or confirmed. When music is enabled, place it on its own track with both fade-in and fade-out; after read-back, lower its volume through `aixcut_audio(action=\"update\", target=\"clip:...\", volume=0.2–0.4)` under voice or narration. Leave optional or unmentioned music off until confirmation. SFX follows the same separate-track and range-confirmation rule.\n\n## Local media\n\nThere are three supported import paths. All are asynchronous and an accepted response does not mean that the media is ready.\n\n### Ask the user to upload\n\nCall:\n\n```json aixcut_frontend\n{\"action\":\"prompt_add_material\"}\n```\n\nA completed response means the upload area is open. Tell the user to select or drag files. After the user confirms upload, read `aixcut_read(view=\"sources\")` and match by `file_name`; do not call `prompt_add_material` again.\n\n### Import an explicit local path\n\nWhen the user gives local paths, start or reuse the bridge yourself before importing; do not ask the user to start it. Use the target Project page/editor origin, not the marketing website origin. Prefer the `Bridge allowed origin` from the connected MCP Server instructions and require it to match the current Project page origin when available. If either is unavailable, report that specific setup blocker instead of running an incomplete command.\n\n```bash\nBRIDGE=$(find ~/.codex/plugins -maxdepth 6 -name local-media-bridge.mjs 2>/dev/null | head -1)\nnode \"$BRIDGE\" /absolute/path/a.mp4 /absolute/path/b.mp4 --allowed-origin \"<Project editor origin>\"\n```\n\nThe helper checks an existing bridge's health or starts a new one, waits until it is ready, and only then returns URLs. Do not call `aixcut_frontend(action=\"import_local_media\")` until this command succeeds. Never invent the origin, URL, or port. The helper manages its own background process and port, reuses a running bridge when possible, and expires after its TTL; do not wrap it in `screen`, `nohup`, or `&`.\n\nIf the helper command fails, inspect its exact error and the reported log file before deciding what to do. If import reports the bridge unreachable, first verify that the bridge's allowed origin matches the target Project page/editor origin. When it does not match, rerun the helper with `--no-reuse --allowed-origin <project-editor-origin>` and retry the failed import once with the new URLs. Do not ask the user to start the bridge or switch to manual upload after the first failure. Retry the same helper command once for a transient startup or health failure; it will recheck/restart the bridge. Do not retry missing files, unreadable paths, a missing editor origin, or a missing helper—report the specific blocker. Offer manual upload only after the bounded retry fails or a required local capability is unavailable, and explain why.\n\nAfter the helper succeeds, use the printed `files[].url` values in one `aixcut_frontend(action=\"import_local_media\")` call, with `url` for one file or `urls` for up to eight. A ready bridge does not prove the Project page can fetch it. If import reports bridge-unreachable or URL failures, rerun the helper for only the failed files and retry those once with the new URLs.\n\nTry to start the headed browser and bridge yourself. Only after that startup or connection fails, or the required local capability is unavailable, use the temporary upload-link path below. Do not ask the user to choose between the bridge and an upload link.\n\nThe response includes `import_ids`. Poll only those IDs with `import_status`. Follow `next_action.after_seconds`; do not re-import while an item is running. An item is settled only when its status is `ready`, `failed`, or `cancelled`, and its `private_copy` is no longer `copying`.\n\n- On `ready`, use the returned `media_id` directly; do not search `sources` just to rediscover which source was imported.\n- On `unknown`, the page no longer tracks the import (for example, after a refresh). Reread `sources` and match by `file_name`.\n- Retry `failed` or `cancelled` only when `retryable` is `true`; otherwise report its `error_code` and `error_message`.\n- `private_copy=ok` means the complete local copy is saved. `fallback` means the media remains usable, but refresh or page export may fail to access the original; report `private_copy_reason`. Removing a clip from the timeline does not remove this copy. It is released when the source is deleted from the library or the Project is deleted.\n\nASR is independent of the file import status. Use `import_status` only until each import is settled; it is not the source of transcription status. When the user's task depends on speech or transcript text, call `aixcut_read(view=\"sources\")`, match the source by the returned `media_id`, and check its `transcript_status` and `transcription_tasks`. Active transcription states are `pending`, `queued`, `running`, `processing`, `submitted`, or `retrying`; wait briefly and reread `sources`; do not keep polling the settled import or re-import. If needed to confirm whether transcription should exist, call `aixcut_read(view=\"source\", source=media_id)` and check `has_audio`. Do not wait for ASR when there is no audio or the task only needs visual evidence. Read `source_lines` only after the matching source has `transcript_status=available`; report empty, outdated, or failed transcription instead of fabricating text or re-importing.\n\nFor `prompt_add_material`, there is no `import_id`. After the user says the upload is complete, reread `sources` and match by filename. If it has not appeared, wait about 15 seconds and reread; never reopen the prompt to confirm the same upload.\n\n### Upload through a temporary link\n\nUse this only when the current environment cannot start or connect the headed browser and local media bridge. This is an automatic fallback, not a user-selected upload mode.\n\n1. Call `aixcut_upload_link(action=\"create\")`.\n2. Present the returned `upload_url` as a link. If the host supports QR rendering, use the same URL as the QR payload; otherwise show the link. Never rewrite, shorten, or expose its token separately.\n3. After the user says the files were sent, call `aixcut_upload_link(action=\"status\", upload_id=...)` and follow the same upload link until every accepted file is terminal. Do not create another link just to check progress.\n4. Match each successful `media_id` or `filename` in `aixcut_read(view=\"sources\")` before continuing the original edit.\n\nUse `renew` only when the same link is expiring and the user still needs it. Use `revoke` only when the user asks to close it.\n\nLocal video does not require a complete server-side video copy. The browser keeps the original and sends extracted audio for transcription; use `capture_source_frames` or `capture_timeline_frames` for visual evidence. If `CAPTURE_PERMISSION_REQUIRED` occurs, ask the user to click the Project page once and retry the original capture. If the bridge is unreachable, follow the bounded recovery above: rerun the helper for a fresh URL and retry once before offering the manual upload path.\n\n### Upload directly from the Agent\n\nUse this when the Agent itself holds the file and no Project page is needed. It is the only path that does not require the user to pick the file in the browser.\n\n1. Compute the file's SHA-256 and call `aixcut_media(action=\"prepare_upload\")` with `file_name`, `mime_type`, `byte_size`, and that `source_fingerprint`. The call returns a short-lived presigned PUT URL plus a `session_id` and `file_id`.\n2. PUT the exact same bytes to that URL with an HTTP client such as `curl`. The MCP server never receives the media.\n3. Call `aixcut_media(action=\"complete_upload\")` with the returned `session_id` and `file_id`, then poll `aixcut_media(action=\"upload_status\", session_id=...)` until ingestion settles.\n\nThe URL is not renewed automatically. If the PUT has not succeeded and the URL expires or returns 403, call `prepare_upload` again with the same metadata and fingerprint; if the PUT succeeded, call `complete_upload` with the original ids instead of re-preparing.\n\n## Captures and visual placement\n\nUse `capture_source_frames` or `capture_timeline_frames` when visual evidence is needed. The result returns temporary JPEG URLs in `result.data.artifacts`. To save them locally, pass the exact JSON Tool result through stdin to `scripts/download-capture-artifacts.mjs <output-directory>`. Report a local path only after the helper succeeds; the remote MCP server does not write files to the local machine.\n\nFor `aixcut_layout(action=\"update\")`, provide exactly one of `preset` or `box`. `box` uses 0–1 canvas ratios; `fit` is `contain`, `cover`, `fill`, or `none`; `opacity` is 0–1. Use `aixcut_layout(action=\"set\")` with `items` for several picture clips. Never pass layout fields to `aixcut_clip`. After changing layout, capture one timeline frame and match each composition entry to its ref. Skip capture only when the final visible composition is unchanged; timing edits that change the visible image, subtitle placement or layer relationship require affected timeline frames. Volume and fades need audio evidence; without listening, audio quality is unjudgeable.\n\nThe editor does not expose reliable zoom, rotation, or anchor edits. Use `box` dimensions or a supported preset instead.\n\n## Content language\n\nTool and workflow terms stay in English. Explain confirmations in the user's current conversation language. Text added to the timeline, including overlays and titles, follows the user's requested content or target-audience language; do not infer English from this Skill.\n\n## Authentication and failures\n\nThe Codex Host handles OAuth. Do not call `aixcut_login` first or bypass permissions. For stable error-code recovery, load `aixcut-known-errors`. Report real status and read-back evidence.\n\nParameter details are in [references/actions.md](references/actions.md).\n"
Full snapshot data
{
  "description": "Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export. Chinese triggers: 剪切、拼接、裁剪、删除片段、加文字、加音乐、轨道、画布、上传素材.",
  "included_files": [
    {
      "relative_path": "references/actions.md",
      "size_in_bytes": 23750
    },
    {
      "relative_path": "references/frontend-actions.md",
      "size_in_bytes": 6934
    }
  ],
  "name": "aixcut-timeline-editing",
  "skill_md_contents": "---\nname: aixcut-timeline-editing\ndescription: \"Edit Aixcut clips, text, audio, tracks, canvas, and local imports. Do not use for voice scripts, full assembly, or export. Chinese triggers: 剪切、拼接、裁剪、删除片段、加文字、加音乐、轨道、画布、上传素材.\"\n---\n\n# Aixcut Timeline Editing\n\n## Conversation guidance\n\nState what timeline change is underway and what happens next when useful. Read current state and proceed when the request is clear and safe. Ask one question only when a missing decision materially changes the edit. If a local file or browser action requires the user, name the exact action and the condition for continuing.\n\nUse the real MCP Tools. Do not use curl, hand-written JSON as a substitute for a call, direct database writes, or local files to reconstruct a result.\n\nVoice, captions, and export have dedicated Skills: `aixcut-voice`, `aixcut-captions`, and `aixcut-export`.\n\n## Minimal workflow\n\n1. Read every view needed for the requested edit and use only stable returned refs; never guess IDs.\n2. Create a fresh UUID v4 `idempotency_key` for each new write intent.\n3. Call the narrowest Tool and action matching the intent.\n4. Read affected views after a successful write; use `aixcut_review(view=\"timeline\")` or `aixcut_review(view=\"renderability\")` when structure or visual placement needs confirmation.\n5. Report the actual result fields when present: `status`, `mutation_id`, `operation_id`, `revision_after`, `created`, `removed`, `ref_map`, and `warnings`.\n6. After the requested edit passes final verification, invoke `aixcut-export` when the user requests a deliverable. Do not duplicate an export already owned by `aixcut-video-assembly`.\n\n### Batching writes\n\n- Send one call per published action and track, not one call per element: pass the whole set through `items[]`, or every target through `targets`, in that single call. The add/set operations accept lists.\n- `aixcut_layout(action=\"update\")` accepts exactly one `target`. For a batch of picture clips, use `aixcut_layout(action=\"set\")` with `items[]`; never put `items` on `update`.\n- Never issue one call per clip, per label, or per segment when one supported call can carry the batch.\n- Never merge different actions, different tracks, or different domains into one call; only the live Tool Schema decides what may be combined.\n- Do not run structural writes on the same timeline concurrently.\n- After each write, treat the returned `revision_after` as the next revision. Derived caption writes may advance it even when the root write succeeded.\n- `aixcut_arrange(action=\"close_gaps\")` moves linked tracks. Use it only after the primary structure is frozen, then reread speech and captions because their positions may have changed.\n- Reuse the last read while the timeline is unchanged; reread before a position-dependent command and after each atomic batch.\n\n## Multiple timelines and versions\n\n- For versions, A/B variants, aspect-ratio adaptations, or “keep the original and make another”, call `aixcut_timeline(action=\"list\")` first.\n- Create a new version with `aixcut_timeline(action=\"duplicate\", source_timeline_id=...)`; use `create` only when the user explicitly wants a blank timeline.\n- When creating a timeline, pass the requested or source-derived aspect ratio/frame rate in the create call. Do not create a default-shaped timeline and correct it after content is placed.\n- Creating or duplicating a timeline does not by itself switch the visible Project page. After the write, require `data.active_timeline_id` to equal the new `timeline_id`; if it is absent, or the result warns `TIMELINE_ACTIVATION_DEFERRED`, call `aixcut_frontend(action=\"activate_timeline\", timeline_id=...)` and verify the returned `status` is `ready` before saying the user is working in the new version.\n- After selecting a `timeline_id`, include it in every later read, edit, capture, and review for that version. Do not mix refs across timelines.\n- Do not create an extra timeline for a single-version request.\n\n## Tool selection\n\n| Intent | Tool |\n| --- | --- |\n| Read or review | `aixcut_read(view=\"timeline\")`, `aixcut_review(view=\"timeline\")` |\n| Main video sequence | `aixcut_primary(action=\"add\")`, `aixcut_primary(action=\"replace\")` |\n| Voice segments | `aixcut_speech(action=\"set\")`, `aixcut_speech(action=\"trim\")` |\n| Video, image, or Motion Graph clips | `aixcut_clip(action=\"add\")`, `aixcut_clip(action=\"update\")` |\n| Regular on-screen text | `aixcut_text(action=\"add\")`, `aixcut_text(action=\"update\")` |\n| Music, effects, or placed voice audio | `aixcut_audio(action=\"add\")`, `aixcut_audio(action=\"update\")` |\n| Canvas placement of picture clips | `aixcut_layout(action=\"update\")`, `aixcut_layout(action=\"set\")` |\n| Text and caption styling | `aixcut_style(action=\"update\")`, `aixcut_style(action=\"set\")` |\n| Batch delete, copy, move, gaps and playhead trims | `aixcut_arrange(action=\"delete\")`, `aixcut_arrange(action=\"move\")` |\n| Tracks | `aixcut_track(action=\"ensure\")`, `aixcut_track(action=\"update\")` |\n| Versions and timelines | `aixcut_timeline(action=\"list\")`, `aixcut_timeline(action=\"duplicate\")` |\n| Canvas or full cleanup | `aixcut_project(action=\"canvas\")`, `aixcut_project(action=\"clear\")` |\n| Remote browser actions | `aixcut_frontend(action=\"page_status\")`, `aixcut_frontend(action=\"capture_timeline_frames\")` |\n| Upload a file the Agent itself holds | `aixcut_media(action=\"prepare_upload\")`, `aixcut_media(action=\"complete_upload\")` |\n| Upload when no headed browser or bridge can start | `aixcut_upload_link(action=\"create\")`, `aixcut_upload_link(action=\"status\")` |\n\nSend only fields declared by the selected Tool Schema. Speech operations edit the main voice track; text operations do not edit captions. After a structural change, reread before issuing a position-dependent command.\n\nWritable clip kinds are `video`, `audio`, `text`, `motion-graph`, and `effect`. Images use `kind=\"video\"`; do not create `graphic` or `composition`, because the editor cannot project, capture, or render those public MCP inputs.\n\n## Keep visual layers separate\n\n- The caption track is only for text that follows spoken words. Ingredient labels, arrows, circles, callouts, titles, and other visual annotations are not captions.\n- Add static or editable text annotations with `aixcut_text(action=\"add\")` on a non-caption text track. For an existing Motion Graph asset, add it with `aixcut_clip(action=\"add\")` on a video overlay track and set that item's `kind` to `motion-graph`; the default `video` kind rejects Motion Graph media. Never target a text or caption track with a Motion Graph.\n- Before adding an annotation, read the track list and choose a track whose kind matches the asset. After the write, read back the clip kind and track. If placement fails or lands on the wrong layer, correct or move the requested element; do not silently delete it or count subtitles as a replacement.\n- Before placing a caption plate, badge, sticker, or CTA, define the intended stacking and safe zones. At every overlapping time, the plate must remain below caption text and must not cover a higher-priority overlay; verify the composed frame after the layer order is final.\n- If no supported asset or operation can create the requested animation, report that limitation and preserve it as unfinished work; do not substitute a caption or claim the animation is complete.\n\n### Motion Graph placement protocol\n\nTreat every requested visual annotation as a typed timeline element before writing it:\n\n1. Read `aixcut_read(view=\"timeline\")` and inspect each track's `kind`, `role`, and stable ref. A `role=caption` track is reserved for spoken or user-supplied subtitle text.\n2. If the required layer is missing, ensure it before adding content: use `aixcut_track(action=\"ensure\", kind=\"text\", role=\"art-text\", name=\"Art Text\")` for static labels and `aixcut_track(action=\"ensure\", kind=\"video\", role=\"overlay\", name=\"Motion Graphics\")` for animated labels, arrows, circles, and other Motion Graphs.\n3. Always pass the returned explicit track ref. Never omit `track` and never rely on the first text or video track. Use `aixcut_text(action=\"add\")` only for static art text; use `aixcut_clip(action=\"add\")` with `kind=\"motion-graph\"` and the explicit video overlay track for an existing Motion Graph asset.\n4. Read `timeline` immediately after each annotation write. Confirm the new clip's source, `kind`, `track_id`, and the track's non-caption role before continuing to the next requested stage. Export is never part of this step.\n5. If an annotation landed on the wrong track, move or correct it with the appropriate clip action and reread. Never delete the requested annotation to hide a placement error, and never count a caption as its replacement.\n\n## Idempotency and result states\n\n- Treat `applied`, `noop`, and `applied_with_warning` according to their literal meanings.\n- `created` contains typed entries `{ id, ref, type }`. A caption or text write can create both clip rows and component rows, so count the `clip:` entries when reporting actual clips.\n- `duplicate: true` means the UUID replayed an earlier successful write and did not add another change.\n- For `status_unknown`, preserve every original parameter and reuse the same UUID.\n- Never reuse a UUID for different parameters or intent. A same-key retry against the same project, timeline and action is treated as a replay (`duplicate: true`) even when the re-planned payload drifted; `NLE_IDEMPOTENCY_CONFLICT` means the key was reused for a different target, so check the timeline before redoing with a fresh UUID.\n\n## Canvas, audio, and tracks\n\n- A new Project may start at `0×0`. The first visual write chooses the source dimensions; if none are available, the server falls back to `1920×1080` and returns `MCP_CANVAS_DEFAULTED`. Use `aixcut_project(action=\"canvas\")` for an explicit portrait or other ratio.\n- Canvas presets are `landscape|fhd|fullhd|1080p` = 1920×1080, `portrait|vertical` = 1080×1920, `square` = 1080×1080, `hd|720p` = 1280×720, and `uhd|4k` = 3840×2160. An unknown preset returns `MCP_CANVAS_PRESET_INVALID`; it is never silently ignored. `aixcut_timeline(action=\"create\")` does not accept canvas fields; create first, then call `aixcut_timeline(action=\"update\", ...)`.\n- `aixcut_read` clip-list views (`clips`, `captions`, `text`, `audio`) accept top-level `track` and `kind` filters, and also the legacy nested `filters.track_id` and `filters.kind` forms. The top-level form is preferred.\n- A caption `update` that only changes clip columns such as `start_ms` or `duration_ms` does not require text component values. Add `text`, `style`, `x`, or `y` only when the component itself must change.\n- Add music, effects, or rendered voice through `aixcut_audio(action=\"add\")`. Use `fade_in_ms` and `fade_out_ms` for music. Volume is not an add field: after adding, read the created clip ref and call `aixcut_audio(action=\"update\", target=\"clip:...\", volume=0.2–0.4)` when narration must remain clear.\n- When the user wants a video's original sound separately, call `aixcut_frontend(action=\"media.extract_audio\", params={media_id: ..., expected_file_revision: ...})`, then poll `aixcut_frontend(action=\"operation.get\", params={operation_id: ...})` until it succeeds, and add the resulting published audio media. Never send a video media ref directly to `aixcut_audio(action=\"add\")`.\n- Before adding audio, ensure an audio track exists with `aixcut_track(action=\"ensure\")`. If read-back reports `MCP_TRACK_ENSURE_NOT_APPLIED`, retry once with a new UUID.\n- Change track mute or enabled state only after reading the current track state.\n\n### Audio roles and write boundaries\n\nOriginal/source audio or narration, AI-generated voice, BGM/music, and SFX/sound effects are different audio roles. Keep each role on its separate dedicated track; never treat an AI voice clip as a replacement for original audio unless replacement was explicitly requested.\n\nSound can carry a scene across visual cuts. Let an existing voice, room tone, or music continue when it supports the thought; do not restart BGM or add a new sound effect at every cut. Trim or fade music to the real content end, keep every instance inside its source range, and use a separate audio clip when a J/L-cut or a cross-shot bed is intentional. A natural loop requires a known loop point or actual listening evidence; a duration match alone is not proof.\n\nAdd a short sound effect only when it makes an action, transition, or result easier to understand or feel. Do not duplicate a click, whoosh, or impact for every caption or edit point. Before adding one, identify the visual event, the sound's meaningful sync point, and the dedicated SFX track; place the clip so that the embedded sync point lands on the event, then read back its range and listen with the dialogue. If no suitable source or listening evidence exists, report the sound effect as unverified instead of treating its presence as a quality pass.\n\nBefore every audio write, read the current timeline and track list, then confirm the target track and the intended start/end range. Read the source audio and existing voice state when deciding whether a human voice already covers that range. Reuse a correct existing narration for edit-only requests and skip new voice placement; this prevents double voice or overlapping narration.\n\nBefore muting a video item's source audio, inspect its component roster. If the item has no `audio` component or audio payload, it has nothing to mute: report the structural fact and do not call `aixcut_audio(action=\"update\")` or guess an audio ref. Video-only B-roll does not require a mute write.\n\nOnly add BGM/music when it is explicitly enabled, requested, or confirmed. When music is enabled, place it on its own track with both fade-in and fade-out; after read-back, lower its volume through `aixcut_audio(action=\"update\", target=\"clip:...\", volume=0.2–0.4)` under voice or narration. Leave optional or unmentioned music off until confirmation. SFX follows the same separate-track and range-confirmation rule.\n\n## Local media\n\nThere are three supported import paths. All are asynchronous and an accepted response does not mean that the media is ready.\n\n### Ask the user to upload\n\nCall:\n\n```json aixcut_frontend\n{\"action\":\"prompt_add_material\"}\n```\n\nA completed response means the upload area is open. Tell the user to select or drag files. After the user confirms upload, read `aixcut_read(view=\"sources\")` and match by `file_name`; do not call `prompt_add_material` again.\n\n### Import an explicit local path\n\nWhen the user gives local paths, start or reuse the bridge yourself before importing; do not ask the user to start it. Use the target Project page/editor origin, not the marketing website origin. Prefer the `Bridge allowed origin` from the connected MCP Server instructions and require it to match the current Project page origin when available. If either is unavailable, report that specific setup blocker instead of running an incomplete command.\n\n```bash\nBRIDGE=$(find ~/.codex/plugins -maxdepth 6 -name local-media-bridge.mjs 2>/dev/null | head -1)\nnode \"$BRIDGE\" /absolute/path/a.mp4 /absolute/path/b.mp4 --allowed-origin \"<Project editor origin>\"\n```\n\nThe helper checks an existing bridge's health or starts a new one, waits until it is ready, and only then returns URLs. Do not call `aixcut_frontend(action=\"import_local_media\")` until this command succeeds. Never invent the origin, URL, or port. The helper manages its own background process and port, reuses a running bridge when possible, and expires after its TTL; do not wrap it in `screen`, `nohup`, or `&`.\n\nIf the helper command fails, inspect its exact error and the reported log file before deciding what to do. If import reports the bridge unreachable, first verify that the bridge's allowed origin matches the target Project page/editor origin. When it does not match, rerun the helper with `--no-reuse --allowed-origin <project-editor-origin>` and retry the failed import once with the new URLs. Do not ask the user to start the bridge or switch to manual upload after the first failure. Retry the same helper command once for a transient startup or health failure; it will recheck/restart the bridge. Do not retry missing files, unreadable paths, a missing editor origin, or a missing helper—report the specific blocker. Offer manual upload only after the bounded retry fails or a required local capability is unavailable, and explain why.\n\nAfter the helper succeeds, use the printed `files[].url` values in one `aixcut_frontend(action=\"import_local_media\")` call, with `url` for one file or `urls` for up to eight. A ready bridge does not prove the Project page can fetch it. If import reports bridge-unreachable or URL failures, rerun the helper for only the failed files and retry those once with the new URLs.\n\nTry to start the headed browser and bridge yourself. Only after that startup or connection fails, or the required local capability is unavailable, use the temporary upload-link path below. Do not ask the user to choose between the bridge and an upload link.\n\nThe response includes `import_ids`. Poll only those IDs with `import_status`. Follow `next_action.after_seconds`; do not re-import while an item is running. An item is settled only when its status is `ready`, `failed`, or `cancelled`, and its `private_copy` is no longer `copying`.\n\n- On `ready`, use the returned `media_id` directly; do not search `sources` just to rediscover which source was imported.\n- On `unknown`, the page no longer tracks the import (for example, after a refresh). Reread `sources` and match by `file_name`.\n- Retry `failed` or `cancelled` only when `retryable` is `true`; otherwise report its `error_code` and `error_message`.\n- `private_copy=ok` means the complete local copy is saved. `fallback` means the media remains usable, but refresh or page export may fail to access the original; report `private_copy_reason`. Removing a clip from the timeline does not remove this copy. It is released when the source is deleted from the library or the Project is deleted.\n\nASR is independent of the file import status. Use `import_status` only until each import is settled; it is not the source of transcription status. When the user's task depends on speech or transcript text, call `aixcut_read(view=\"sources\")`, match the source by the returned `media_id`, and check its `transcript_status` and `transcription_tasks`. Active transcription states are `pending`, `queued`, `running`, `processing`, `submitted`, or `retrying`; wait briefly and reread `sources`; do not keep polling the settled import or re-import. If needed to confirm whether transcription should exist, call `aixcut_read(view=\"source\", source=media_id)` and check `has_audio`. Do not wait for ASR when there is no audio or the task only needs visual evidence. Read `source_lines` only after the matching source has `transcript_status=available`; report empty, outdated, or failed transcription instead of fabricating text or re-importing.\n\nFor `prompt_add_material`, there is no `import_id`. After the user says the upload is complete, reread `sources` and match by filename. If it has not appeared, wait about 15 seconds and reread; never reopen the prompt to confirm the same upload.\n\n### Upload through a temporary link\n\nUse this only when the current environment cannot start or connect the headed browser and local media bridge. This is an automatic fallback, not a user-selected upload mode.\n\n1. Call `aixcut_upload_link(action=\"create\")`.\n2. Present the returned `upload_url` as a link. If the host supports QR rendering, use the same URL as the QR payload; otherwise show the link. Never rewrite, shorten, or expose its token separately.\n3. After the user says the files were sent, call `aixcut_upload_link(action=\"status\", upload_id=...)` and follow the same upload link until every accepted file is terminal. Do not create another link just to check progress.\n4. Match each successful `media_id` or `filename` in `aixcut_read(view=\"sources\")` before continuing the original edit.\n\nUse `renew` only when the same link is expiring and the user still needs it. Use `revoke` only when the user asks to close it.\n\nLocal video does not require a complete server-side video copy. The browser keeps the original and sends extracted audio for transcription; use `capture_source_frames` or `capture_timeline_frames` for visual evidence. If `CAPTURE_PERMISSION_REQUIRED` occurs, ask the user to click the Project page once and retry the original capture. If the bridge is unreachable, follow the bounded recovery above: rerun the helper for a fresh URL and retry once before offering the manual upload path.\n\n### Upload directly from the Agent\n\nUse this when the Agent itself holds the file and no Project page is needed. It is the only path that does not require the user to pick the file in the browser.\n\n1. Compute the file's SHA-256 and call `aixcut_media(action=\"prepare_upload\")` with `file_name`, `mime_type`, `byte_size`, and that `source_fingerprint`. The call returns a short-lived presigned PUT URL plus a `session_id` and `file_id`.\n2. PUT the exact same bytes to that URL with an HTTP client such as `curl`. The MCP server never receives the media.\n3. Call `aixcut_media(action=\"complete_upload\")` with the returned `session_id` and `file_id`, then poll `aixcut_media(action=\"upload_status\", session_id=...)` until ingestion settles.\n\nThe URL is not renewed automatically. If the PUT has not succeeded and the URL expires or returns 403, call `prepare_upload` again with the same metadata and fingerprint; if the PUT succeeded, call `complete_upload` with the original ids instead of re-preparing.\n\n## Captures and visual placement\n\nUse `capture_source_frames` or `capture_timeline_frames` when visual evidence is needed. The result returns temporary JPEG URLs in `result.data.artifacts`. To save them locally, pass the exact JSON Tool result through stdin to `scripts/download-capture-artifacts.mjs <output-directory>`. Report a local path only after the helper succeeds; the remote MCP server does not write files to the local machine.\n\nFor `aixcut_layout(action=\"update\")`, provide exactly one of `preset` or `box`. `box` uses 0–1 canvas ratios; `fit` is `contain`, `cover`, `fill`, or `none`; `opacity` is 0–1. Use `aixcut_layout(action=\"set\")` with `items` for several picture clips. Never pass layout fields to `aixcut_clip`. After changing layout, capture one timeline frame and match each composition entry to its ref. Skip capture only when the final visible composition is unchanged; timing edits that change the visible image, subtitle placement or layer relationship require affected timeline frames. Volume and fades need audio evidence; without listening, audio quality is unjudgeable.\n\nThe editor does not expose reliable zoom, rotation, or anchor edits. Use `box` dimensions or a supported preset instead.\n\n## Content language\n\nTool and workflow terms stay in English. Explain confirmations in the user's current conversation language. Text added to the timeline, including overlays and titles, follows the user's requested content or target-audience language; do not infer English from this Skill.\n\n## Authentication and failures\n\nThe Codex Host handles OAuth. Do not call `aixcut_login` first or bypass permissions. For stable error-code recovery, load `aixcut-known-errors`. Report real status and read-back evidence.\n\nParameter details are in [references/actions.md](references/actions.md).\n"
}

SHA-256 of public snapshot: 232cf1b598eea85b0bbb8f1a4f9f7bc97d5eb66f0d4395596a5a7611d75ef86f