Agents and the Command Line
Everything the editor does to a project is a command with an id, such as file.import, timeline.razor, sequence.inspect or file.exportMedia, and the menus and keys run the same commands. The ids are FilmCraft's, so a script or an agent written for FilmCraft finds the same commands here. The editor's program, DivookaVideoEditor.exe, also offers them outside the window in three ways:
| Way | Start it with | For |
|---|---|---|
| MCP server | DivookaVideoEditor.exe --mcp |
An AI agent working on a project, with or without the window. |
| Control channel | DivookaVideoEditor.exe --control 9876 |
An agent or a test driving the open window as a person would. |
| Command line | DivookaVideoEditor.exe --cli <command> |
One job from a terminal or a batch file: look at a project, change it, export it. |
Each change made through them is an undo step, as if it had been made in the window, and a command that cannot apply is refused with the reason.
An AI agent, through MCP
--mcp serves the editor's tools over standard input and output to any client that speaks the Model Context Protocol. On its own it works on a project of its own, with no window: start it with --project F.vfproj to open a project, --demo for the demo project, or neither for an empty one. With --bridge 127.0.0.1:9876 it drives the editor you have open instead, which you start with --control 9876, so you can watch the agent work and step in.
For Claude Code:
claude mcp add divooka-video -- "C:\path\to\DivookaVideoEditor.exe" --mcp --demo
For a client that reads an mcpServers file:
{ "mcpServers": {
"divooka-video": { "command": "C:\\path\\to\\DivookaVideoEditor.exe", "args": ["--mcp", "--bridge", "127.0.0.1:9876"] } } }
Put in the path of DivookaVideoEditor.exe where the editor is installed on your computer. The tools let the agent list every command and run one or several, read the project and the sequence with its tracks, clips, transitions and markers, import media, and render a frame to look at; over the bridge it can also take screenshots of the window or a panel, find what is on the screen, and click, drag, press keys and type in it.
The open window, through the control channel
DivookaVideoEditor.exe --control 9876 starts the editor with a control channel on port 9876, listening on this computer only (127.0.0.1) and with no password, so start it only when you want it. Through it a program sends one JSON request a line and gets one reply a line: it runs commands, and also operates the window itself - it presses keys, clicks, drags, drops files, answers file dialogs, switches workspaces and asks what is on the screen. DIVOOKA_CONTROL_PORT=9876 in the environment does the same as --control.
The command line
--cli runs one command and ends, printing what it found as JSON. It works on the project named with --project F.vfproj, the demo project with --demo, or an empty project; with --bridge 127.0.0.1:9876 it runs in the editor you have open instead.
| Command | What it does |
|---|---|
commands [TEXT] |
Every command, or those matching the text, with its key and parameters. |
describe ID |
One command: its menu, key, parameters and whether it can run now. |
inspect [project \| sequence] |
The project's items and bins, the active sequence, or both. |
exec ID key=value… |
Runs one command, such as exec timeline.razor seconds=3.5. |
run FILE.jsonl |
Runs a file of commands, one {"id": …, "params": …} a line; lines starting with # are comments. |
import FILES… |
Imports media into the Project panel. |
export OUT |
Exports the active sequence and waits for it: --preset NAME or --format F (from the file's extension when neither is given), --range inOut or --start and --end, --no-audio, --queue. export --list-presets lists the presets by name. |
render --seconds S --out F.png |
Renders one frame of the sequence to a picture. |
probe MEDIA |
What a media file holds: its streams, size, length and rate. |
version |
The editor's version. |
exec, run and import change the project; add --save to save it in place, or --save-as F.vfproj to save it as another file. A run saves only when every line worked.
DivookaVideoEditor.exe --cli inspect sequence --project "My Film.vfproj"
DivookaVideoEditor.exe --cli exec timeline.razor seconds=2 --project "My Film.vfproj" --save-as "My Film cut.vfproj"
DivookaVideoEditor.exe --cli render --project "My Film cut.vfproj" --seconds 1.5 --out frame.png
DivookaVideoEditor.exe --cli export film.mp4 --project "My Film cut.vfproj" --preset "YouTube 1080p Full HD"
DivookaVideoEditor.exe --cli help prints every option. The command line exits with status 0 when the command worked, 1 when it failed and 2 when it was written wrongly. An export or a frame that had to draw media whose file is missing exits with 1 and says which, unless --allow-offline accepts it.
The program is a Windows program, which PowerShell starts without waiting for its answer. From PowerShell, run divooka-video-editor-cli instead - a small batch file beside the program, which takes what follows --cli and waits - or cmd /c DivookaVideoEditor.exe --cli …. From the Command Prompt, Git Bash or a pipe the program works as it is.
The help, for agents
help.docs answers with the address of a page of this help, and in the window also opens it in the browser. Its page is one of help (this guide's front page, the default), start, panels, shortcuts, effects, captions and agents:
DivookaVideoEditor.exe --cli exec help.docs page=shortcuts
See also
- Keyboard shortcuts - the window's commands that have keys;
shortcuts.listlists them for an agent. - Effects and transitions - each effect's and transition's id, by which
effects.applyand the transition commands name them.