openmode
v0.2.0Video editing and rendering for coding agents: look at footage, render edits to MP4, keep versions.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
look Look at a video
See a video, an image or a folder of frames. Returns one contact sheet (evenly spaced frames, each labelled with its timestamp) and facts: duration, size, fps, loudness in LUFS, silent stretches, black stretches, missing frames. Use it before editing footage and after every render to check your own work. Pass `at` for one full-size frame, or `start`/`end` to look closer at a stretch.
| Parameter | Type | Description |
|---|---|---|
path * | string | Video file, image file, or folder of numbered frames. |
at | number | Return one full frame at this second. |
end | number | Look up to this second. |
frames | integer | Tiles on the sheet. Default 12. |
out | string | Also save the sheet here (.jpg). |
quick | boolean | Skip sound and black-frame analysis. |
start | number | Look from this second. |
render_edit Render an edit to MP4
Render an edit file to an MP4 with the local ffmpeg. An edit lists clips in order (video or image, with trims, speed, volume, cut or fade), audio tracks (music, voiceover), timed captions, an end card and a target loudness. Call edit_schema once to see the format. Render with quality draft first, look at it, then final. Returns the MP4 path, duration, size and render time.
| Parameter | Type | Description |
|---|---|---|
baseDir | string | With `edit`: the folder clip paths are relative to. Default: the working directory. |
edit | Or the edit object itself, instead of a file. | |
file | string | Path to the edit JSON file. Clip paths inside are relative to this file. Preferred. |
out | string | Output .mp4 path. Default: renders/<name>-<quality>.mp4 next to the edit file. |
quality | string | draft = fast and small, to check your work; final = full quality. |
validateOnly | boolean | Check the edit and report the timeline without rendering. |
render_frames Render frames to MP4
Join a folder of numbered image frames (frame_0001.png ...) into an MP4, with an optional soundtrack. Use it for a headless-browser capture or any renderer that writes frames. Reports missing frame numbers instead of producing a broken film.
| Parameter | Type | Description |
|---|---|---|
dir * | string | Folder of numbered frames. |
audio | string | Soundtrack file to lay under the frames. |
fps | number | Frames per second. Default 24. |
loudness | number | Target loudness in LUFS, e.g. -14. |
out | string | Output .mp4 path. |
quality | string | draft = fast and small, to check your work; final = full quality. |
render_blender Render a Blender scene to MP4
Render a .blend file, or a Python script that builds a scene with bpy, to an MP4 using the Blender installed on this machine. quality draft is small (360p), low-sample and may skip frames so you can check the scene in seconds; look at it, then render final at the scene's own size and samples. Returns the MP4 path, duration, size, renderer and frame count. Needs Blender; status says if it is installed.
| Parameter | Type | Description |
|---|---|---|
file * | string | A .blend file or a .py scene script. |
allowScripts | boolean | Let Python stored inside the .blend run. Off by default. |
audio | string | Soundtrack file to lay under the film. |
loudness | number | Target loudness in LUFS, e.g. -14. |
out | string | Output .mp4 path. Default: renders/<name>-<quality>.mp4 next to the scene. |
quality | string | draft = fast and small, to check your work; final = full quality. |
range | string | Frames to render, e.g. "1-48" or "12". Default: the scene's range. |
renderer | string | Override the scene's renderer. |
samples | integer | Override samples per pixel. |
step | integer | Render every Nth frame; the film keeps its length. |
versions Save, list, restore and compare versions
Version history for the film folder (the working directory, or `dir`). save records every file with a message and the prompt that led to it; unchanged footage is stored once. list shows the history. restore puts the folder back to a version: unsaved work is saved first and the restore becomes a new version, so nothing is ever lost. diff shows which files changed between two versions (or a version and now), with a line diff for text files such as the edit.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
dir | string | Film folder. Default: the working directory. |
from | string | diff: older version, e.g. v2. |
id | string | restore: the version to go back to, e.g. v3. |
message | string | save: what changed, in one line. |
model | string | save: the model that made it. |
prompt | string | save: the user's request that led to this version. |
to | string | diff: newer version, or "current" (default). |
edit_schema Edit file format
The format of the edit file render_edit reads, with an example. Call once before writing your first edit.
status Check this machine
Check that ffmpeg is installed, whether Blender is, and which features work here (hardware encoder, captions). Call it if a render fails for a reason that is not the edit.