agent-video-engine
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| VIDEO_ENGINE_MODEL | No | Path to an installed whisper.cpp GGML model for transcription. Defaults to ~/.cache/whisper.cpp/ggml-medium.en.bin. | |
| AGENT_VIDEO_BROWSER | No | Absolute path to a Chrome or Chromium executable used for rendering. If unset, the engine discovers common local Chromium installations. | |
| VIDEO_ENGINE_RUNTIME | No | Directory for shared worker state. Defaults to the engine's .cache/ directory. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Local headless video editor. Inspect the project revision before changes. Import source footage by reference. For a recording with multiple takes in one file, transcribe or import source words, build media_index, then use media_index_get and media_search to compare possible alternative attempts through source_preview. Indexing never selects the best take or changes the recording. Use source-timed word IDs for edits and inspect source/edited previews. Use review_cuts to flag transcript timing and mixed-audio risks at timeline joins and generate short review clips. Reviews never change the edit and are evidence for review, not a verdict on naturalness. Rendering, transcription, indexing, sidecar delivery and project bundles are asynchronous. Poll job_get using the returned projectDir and id. Bundle-open jobs return a runtime projectDir for polling and destinationProjectDir for the new editable copy. Stage proposed operations with draft_stage, preview_render with draftId, then draft_apply once reviewed. Use revision_compare and preview_render revision to compare saved versions. Timeline tools support insert/replace, explicit gaps, overlapping transitions and independent picture/audio source bounds. Motion uses saved clip or overlay keyframes; graphic_presets lists reusable text treatments. set_caption_cues saves corrected wording, line breaks and fixed output timing; cues:null restores automatic source-linked captions. export_render presets and matching preview_render presets provide vertical, horizontal and square framing. export_subtitles creates SRT/VTT and export_timeline creates editable OTIO with reported fidelity limits. media_relink accepts only matching original bytes. project_bundle and project_open_bundle move the current editable revision and registered media without overwriting destinations. Audio finishing is opt-in: enable it with set_audio, then adjust outputGainDb for overall loudness, strength for take matching, voiceGainDb for voice/music balance, or set_clip_audio for an individual take. Main clips default to voice and overlays to effects. Set audio.role explicitly for music and other sounds. Voice/music/effects gains and per-item fades/envelopes stay active when automatic loudness finishing is off. Optional ducking reduces music against the voice signal; optional denoise cleans the voice bus. Custom-layer sound belongs to effects. Manual clip gains remain active with finishing off. Read render job audio reports for achieved loudness, peaks and skipped measurements. Original source previews bypass these adjustments. Saved color controls use set_asset_color for a source image/video and set_clip_color for main-clip overrides. Adjust brightness, contrast, saturation, relative temperature and tint. Null fields restore inheritance and patch:null clears local overrides. A clip with enabled=false bypasses its inherited correction. Use color_preview to compare one identical output frame before and after, then inspect both images through job_get. These controls apply to engine-rendered source media, with captions and custom graphics keeping their own colors. The engine performs deterministic edits; editorial decisions belong to the agent. No uploads, publication or model downloads. Register custom motion with set_custom mode="layer" to keep the engine in control of timing and allow cut review. Independent standalone compositions retain their own timing and require adaptation for automatic cut review. See docs/technical-reference.md for the operation schema.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| graphic_presetsC | List reusable title, lower-third and callout styles. Add a text overlay with preset and override its style or motion as needed. |
| draft_stageA | Prepare a validated edit without changing the saved project. Render it using preview_render with draftId, then apply the exact reviewed state with draft_apply. |
| draft_inspectB | Inspect proposed changes and whether the base revision is still current. Optional compiled timeline includes draft timing and captions. |
| draft_listB | List saved edit proposals and mark ones whose base revision changed. |
| draft_applyA | Commit the exact staged edit as one new revision. Refuses stale drafts so it cannot overwrite newer work. |
| draft_deleteB | Delete one saved proposal. The current edit, revision history and original media remain intact. |
| revision_compareA | Compare two saved revisions, including changes to cuts, graphics, captions, settings and output duration. preview_render can render either revision. |
| media_relinkA | Relink moved source files by exact saved fingerprint. Supply all missing assets in one atomic batch. Never accepts different source bytes as the same original. |
| project_bundleA | Package the current editable project and registered media in a new local directory for another machine. Does not include revision history, caches or exports. Returns a job. |
| project_open_bundleA | Queue verification and opening of a portable bundle as a new local editable project with copied media. Existing destination directories are refused. Poll job_get using the returned projectDir and id. destinationProjectDir identifies the new editable project after completion. |
| export_subtitlesA | Export edited caption wording, line breaks and timeline timing as SRT or WebVTT. Works when burned-in captions are disabled. Creates a new file. |
| export_timelineB | Export a source-linked OpenTimelineIO timeline for compatible editors. Includes editable cuts, gaps, overlaps and audio timing. Read returned fidelity limitations for effects and graphics. |
| engine_statusA | Check local video engine dependencies and cached transcription model. No uploads or downloads. |
| project_import_legacyA | Import an existing local legacy .aive project into a new headless project, preserving its source transcript and explicit cuts. Does not change the source project or footage. |
| project_createC | Create a new local headless video project. Existing directories and media are preserved. |
| project_inspectA | Read project state and revision. Include the compiled timeline to inspect edited timing and retimed captions. |
| project_validateA | Validate timeline and confirm originals still match imported fingerprints. Does not judge creative quality. |
| media_addA | Probe and reference a local original image, video or audio file without copying it. Optionally append video/audio to the main timeline. |
| media_indexA | Map one original recording, including multiple attempts recorded in the same file. Creates timestamped thumbnails/contact sheets for video, links existing source transcript words, and groups repeated passages as POSSIBLE retakes. Never chooses the best take, splits the source, changes the edit or deletes footage. Returns a durable job ID; read job_get for the index ID. Does not transcribe automatically: use transcribe or transcript_import first for spoken take grouping. Missing transcripts allow video picture maps without spoken grouping. Reuses a cached map when source, transcript and options match. |
| media_index_getA | Read a saved original-recording map in bounded pages. Returns possible attempts, retake groups, source timestamps and preview hints; optionally returns one timestamped contact sheet as an image. Use the indexId returned by media_index. Normal timeline edits can reuse the map; changed source media or transcript requires reindexing. A possible retake is a repeated phrase, not a quality verdict. |
| media_searchA | Search words spoken in an indexed source recording and find source-time ranges plus possible alternative attempts. This is lexical transcript search, not semantic image search or automatic best-take selection. Use returned preview hints with source_preview to compare actual delivery before editing. |
| edit_applyA | Apply a complete validated batch as one revision. Timeline controls: set_clips, insert_clip, replace_clip, insert_gap, set_gap, split_clip, remove_clip, trim_clip, reorder_clips, delete_source_range, delete_words. Set an incoming crossfade/dip/wipe with set_transition (overlaps existing retained ranges and shortens output). set_clip_visual controls crop, focus, fit, position and timed motion keyframes. set_clip_audio controls independent source bounds/offset, gain, role, fades and volume envelope; patch:null restores linked sound. set_audio controls voice/music/effects gains, optional music ducking, voice noise reduction and automatic loudness. upsert_overlay adds media or reusable title/lower_third/callout text. set_caption_cues edits wording, line breaks and fixed output timing; cues:null returns to source-timed captions. Also supports remove_overlay, set_captions, set_settings, set_custom, set_asset_color and set_clip_color. Use draft_stage for a proposal preview. Invalid or stale batches leave the project unchanged. Originals are preserved. |
| revision_listC | List saved edit revisions. |
| revision_restoreA | Restore a saved revision as a new revision. Keeps history and original footage. |
| transcript_importA | Import source-timed transcript words from local JSON, including a word array or native speech-recognition output. Reuses existing transcripts without retranscription. |
| transcript_searchA | Read or search source transcript words with stable word IDs and source times. Use empty query for paginated reading; review footage before judging retakes. |
| transcribeA | Start cached, local word transcription with whisper.cpp. Returns a durable job ID. Never uploads footage or downloads models. Applies results only if the project revision is unchanged. |
| preview_renderB | Render a still frame or short moving preview of the current edit. Enabled audio finishing uses the full project mix so short previews retain the same settings and master level as the final export. Returns a durable job ID. Use job_get for the result, audio measurements and any peak-limited target warnings. |
| color_previewA | Compare saved color corrections at one identical output frame. Returns a durable job ID; read job_get for labeled before and after PNG images. Uses the same saved edit, captions, graphics, frame and scale for both images. The before image bypasses engine color controls. Requires the engine timeline or a custom layer. Creates derived previews without changing the saved edit. |
| source_previewA | Inspect an original source asset before making editorial decisions. Renders a still or short source clip without changing the saved edit. Bypasses saved color controls, audio finishing and manual edit gains so it represents the original recording. |
| export_renderB | Render one final MP4 from the saved project, including captions, overlays and audio. Enabled automatic audio finishing levels main-track voice with saved adjustable controls, includes music/custom-layer audio in the master, and measures the encoded result. Always creates a new output and preserves originals and accepted exports. |
| review_cutsA | Review source-linked timeline joins without changing the edit. Supports the built-in timeline and custom layer mode, where the engine owns timing and main clips. Flags transcript words cut at a boundary, measured audio level jumps and long silence near a join. Creates short mixed-master preview clips and a local report. Returns a durable job ID; read job_get for results. Measurements are review cues, not a verdict on naturalness. Use offset/limit to review long edits in batches. Independent standalone compositions require adaptation to layer mode. |
| job_listA | List saved local render, transcription, color-comparison, cut-review and recording-index jobs. |
| job_getB | Read job progress, result paths or actionable errors. Completed stills and color comparisons can be returned as images. |
| job_cancelB | Request cancellation of a queued or running job and its underlying renderer/transcriber. |
| job_retryB | Restart a failed or interrupted job only if its original project revision is still current. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 36 tools
Most tools are clearly differentiated by resource family (project_*, media_*, draft_*, revision_*, job_*, export_*) and by explicit scoping sentences in descriptions (e.g. source_preview bypasses color/audio finishing vs preview_render uses full mix). A few boundaries are soft: graphic_presets is named like a read-only lister but actually adds text overlays already covered by edit_apply's upsert_overlay, and the four preview/render tools plus preview_render vs export_render require careful reading to separate.
Two competing conventions coexist: resource-first compound names (media_add, project_create, draft_apply, job_get, transcript_import) versus verb-first names (export_subtitles, preview_render, review_cuts, transcribe), and a few names are bare nouns or ambiguous (graphic_presets, project_bundle). Everything is snake_case and readable, so an agent can map names to families, but the pattern is not uniform.
36 tools is heavy and exceeds the comfortable range, though the domain (headless video editing with transcription, drafts, revisions, previews, jobs) is genuinely large and each family is internally cohesive. There is mild duplication in the preview surface (source_preview, color_preview, preview_render, review_cuts) that pushes this toward over-scoped.
Coverage is broad: project lifecycle (create/validate/inspect/import/bundle/open), media ingestion and relinking, transcription, editing, drafts, revision history with compare/restore, exports (MP4, subtitles, OTIO), previews, and full job control. Minor gaps remain, such as no project deletion/cleanup, no explicit asset or overlay listing outside project_inspect, and no per-clip query tool.