WeCut

v0.1.0
io.github.13kailouis-stack/wecut Checked 9 hours ago Published 1 month ago

Local video editing for AI agents: cut, caption, analyse, reuse viral formats.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

wecut_doctor Check FFmpeg

Check that FFmpeg is installed and has what WeCut needs (libass, xfade, an H.264 encoder). Run once before the first render.

wecut_probe Inspect media files

Duration, width, height, fps, rotation and audio for video, image or audio files in the workspace. Use the durations for clip from/to.

ParameterTypeDescription
files *arrayPaths relative to the workspace.

wecut_validate Check a project

Check a project against the media without rendering. Returns the finished duration and size, or every error with a JSON pointer (e.g. /clips/0/to) and a hint on how to fix it.

ParameterTypeDescription
projectobjectThe WeCut project (format "1") as a JSON object. wecut_schema has the full format; wecut_example shows working projects.
projectFilestringInstead of project: path of a project .json file inside the workspace.

wecut_preview Look at frames

Render a few still frames (540p JPEG) at chosen times of the finished video and return them as images, so you can check framing, text size and captions before rendering. Also saved under out/preview/.

ParameterTypeDescription
atarrayTimes in seconds of the finished video. Default: 10%, 50% and 90%.
projectobjectThe WeCut project (format "1") as a JSON object. wecut_schema has the full format; wecut_example shows working projects.
projectFilestringInstead of project: path of a project .json file inside the workspace.

wecut_render Render video

Render the project to output.file (MP4 or GIF) inside the workspace, overwriting an earlier render with the same name. The result is checked with ffprobe. Sends progress notifications when the call has a progressToken.

ParameterTypeDescription
outstringOverride output.file (must end in .mp4 or .gif).
presetstringdraft = 540p fast check, final = default, high = slower and sharper.
projectobjectThe WeCut project (format "1") as a JSON object. wecut_schema has the full format; wecut_example shows working projects.
projectFilestringInstead of project: path of a project .json file inside the workspace.

wecut_list List styles and names

Names usable in a project: text styles, caption styles, fonts, transitions, filters, effects, motions, ratios and text animations.

ParameterTypeDescription
whatstring

wecut_schema Project format

The JSON Schema of the WeCut project format, with a description of every field. what=recipe gives the recipe (template) format instead.

ParameterTypeDescription
whatstring

wecut_example Example project

A complete working project to copy from: podcast-clip (cuts + karaoke captions + ducked music), slideshow (photos with motion and transitions) or product-promo (contain + blur, logo, text). Omit name to list them.

ParameterTypeDescription
namestring

wecut_analyze Analyse a video

Measure a video that worked: shots and pace, cuts in the first 3 s, flashes, beat and tempo, pauses, a silent platform outro, and (with a transcript) words per minute and the hook's words. Returns a sheet of frames, one per shot, as an image: look at it for the headline card, text style, framing and captions. Use the result to pick or write a recipe.

ParameterTypeDescription
file *stringVideo in the workspace.
framesintegerFrames on the sheet (default 12).
transcriptstringWord timings for it (.json, .srt, .vtt), optional.

wecut_recipe_list List recipes

Recipes are templates: the shape of an edit without its content (sections such as hook and body, text slots, caption and music style). Lists the built-in ones and the workspace's own (recipes/*.json).

wecut_recipe_show Show a recipe

A recipe in full, with the roles its clips can feed, its text slots, and its default music.

ParameterTypeDescription
name *stringRecipe name or workspace .json path.

wecut_recipe_apply Apply a recipe

Turn a recipe plus new material into a project: clips (each with an optional role such as hook or body), words for the text slots, a transcript for captions, and music (replaces the recipe's own track; "none" drops it). Returns the project (saved with write); then wecut_preview and wecut_render it.

ParameterTypeDescription
clips *array
recipe *string | objectBuilt-in name, workspace .json path, or a recipe object (wecut.recipe/1).
captionSrcstring
musicstringAudio file, a video whose sound is used, or "none".
outputstringRender target (.mp4 or .gif).
textsobjectWords per slot, e.g. {"headline": {"text": "...", "emphasis": ["key words"]}}.
transcriptstringWord timings of captionSrc (or of the source used longest).
writestringSave the project here (.json).

wecut_recipe_from_project Save a project as a recipe

Make a reusable template from a finished project: sections, transitions, text slots (current words kept as defaults), caption style, effects, and its music as the default track.

ParameterTypeDescription
namestring
projectobjectThe WeCut project (format "1") as a JSON object. wecut_schema has the full format; wecut_example shows working projects.
projectFilestringInstead of project: path of a project .json file inside the workspace.
writestringSave it here, e.g. recipes/my-style.json, so wecut_recipe_list finds it.