agent.json
{
"id": "agentrove.video-production",
"name": "Video Production Assistant",
"version": "0.2.2",
"license": "MIT",
"summary": "From a script: shot list, b-roll needs, on-screen text plan, CMX3600 EDL and SRT/WebVTT captions. FFmpeg: allowlisted commands as text, or render (confirm required) to run trim, concat, caption burn-in, fit and MP4/WebM transcodes on local files.",
"description": "Planning, captions and ffmpeg_commands are offline and side-effect free, derived deterministically from your script (no generative video, TTS or image APIs). render is the only tool that executes anything: it runs your own FFmpeg install on files inside the media folder, with the same option/filter allowlists as ffmpeg_commands, no shell, ffprobe checks, timeouts and size/duration limits, and never overwrites an input.",
"sdk_import": "../../../sdk/index.js",
"entry": {
"module": "src/index.js",
"cli": "bin/cli.js",
"mcp": "bin/mcp.js"
},
"tools": [
{
"name": "plan_production",
"description": "Turn a script into a shot list (A-roll and B-roll cutaways, shots no longer than max_shot_seconds), b-roll needs with keywords and rights notes, an on-screen text plan (hook title, key numbers, source credits for claims, call-to-action card) and a CMX3600 edit decision list with timecodes at your frame rate.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"additionalProperties": false,
"required": [
"script"
],
"properties": {
"script": {
"type": "object",
"required": [
"segments"
],
"description": "A script (types.json `script`), e.g. the output of AgentRove video-script build_script.",
"properties": {
"title": {
"type": "string",
"maxLength": 300
},
"duration_seconds": {
"type": "number",
"minimum": 0,
"maximum": 86400
},
"segments": {
"type": "array",
"minItems": 1,
"maxItems": 500,
"items": {
"type": "object",
"required": [
"start",
"end",
"text"
],
"properties": {
"start": {
"type": "number",
"minimum": 0,
"maximum": 86400
},
"end": {
"type": "number",
"minimum": 0,
"maximum": 86400
},
"text": {
"type": "string",
"maxLength": 5000
},
"kind": {
"type": "string",
"maxLength": 40
},
"index": {
"type": "integer"
},
"words": {
"type": "integer"
}
}
}
},
"claims": {
"type": "array",
"maxItems": 500,
"items": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"maxLength": 2000
},
"source_url": {
"type": "string",
"maxLength": 2048
},
"sources": {
"type": "array",
"maxItems": 50,
"items": {
"type": "string",
"maxLength": 2048
}
},
"segment": {
"type": "integer",
"minimum": 0
}
}
}
}
}
},
"fps": {
"enum": [
24,
25,
30,
50,
60
],
"description": "Default 30 (non-drop-frame timecode)."
},
"aspect_ratio": {
"enum": [
"9:16",
"16:9",
"1:1",
"4:5"
],
"description": "Default 9:16."
},
"max_shot_seconds": {
"type": "number",
"minimum": 1,
"maximum": 60,
"description": "Default 6."
},
"a_roll_reel": {
"type": "string",
"pattern": "^[A-Z0-9_]{1,8}$",
"description": "EDL reel name for the presenter recording. Default AROLL."
},
"a_roll_clip": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Clip name noted in the EDL. Default a_roll.mp4."
},
"max_text_chars": {
"type": "integer",
"minimum": 10,
"maximum": 120,
"description": "Longest on-screen text. Default 32."
}
}
},
"output_schema": {
"type": "object",
"required": [
"title",
"fps",
"aspect_ratio",
"duration_seconds",
"shots",
"broll",
"onscreen_text",
"edl",
"warnings"
],
"properties": {
"title": {
"type": "string"
},
"fps": {
"type": "integer"
},
"aspect_ratio": {
"type": "string"
},
"duration_seconds": {
"type": "number"
},
"shots": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"segment",
"start",
"end",
"type",
"description"
],
"properties": {
"id": {
"type": "string"
},
"segment": {
"type": "integer"
},
"kind": {
"type": "string"
},
"start": {
"type": "number"
},
"end": {
"type": "number"
},
"duration": {
"type": "number"
},
"type": {
"enum": [
"a_roll",
"b_roll"
]
},
"framing": {
"type": "string"
},
"description": {
"type": "string"
},
"broll_id": {
"type": "string"
},
"text_ids": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"broll": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"shot_id",
"start",
"end",
"need",
"keywords",
"rights_note"
],
"properties": {
"id": {
"type": "string"
},
"shot_id": {
"type": "string"
},
"start": {
"type": "number"
},
"end": {
"type": "number"
},
"need": {
"type": "string"
},
"keywords": {
"type": "array",
"items": {
"type": "string"
}
},
"source_url": {
"type": "string"
},
"rights_note": {
"type": "string"
}
}
}
},
"onscreen_text": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"start",
"end",
"text",
"role",
"position"
],
"properties": {
"id": {
"type": "string"
},
"start": {
"type": "number"
},
"end": {
"type": "number"
},
"text": {
"type": "string"
},
"role": {
"type": "string"
},
"position": {
"type": "string"
}
}
}
},
"edl": {
"type": "object",
"required": [
"format",
"fps",
"text",
"events"
],
"properties": {
"format": {
"type": "string"
},
"fps": {
"type": "integer"
},
"text": {
"type": "string"
},
"events": {
"type": "array"
}
}
},
"safe_area": {
"type": "string"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
{
"name": "ffmpeg_commands",
"description": "Build FFmpeg commands as TEXT ONLY (never executed): trim, concat (demuxer list file or concat filter), burn_captions (subtitles filter), fit (scale + pad/crop to a size) and transcode. Output codecs follow the output extension: .mp4/.mov/.m4v/.mkv = H.264 + AAC, .webm = VP9 + Opus. Paths are validated (no protocols, no leading '-', no control characters), filter values use FFmpeg's two-level escaping, every option is checked against an allowlist, and commands are quoted for a POSIX shell or PowerShell. Overwrites nothing unless overwrite is true (-n by default). Use render to execute operations after the user approves them.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"additionalProperties": false,
"required": [
"operations"
],
"properties": {
"operations": {
"type": "array",
"minItems": 1,
"maxItems": 50,
"items": {
"type": "object",
"required": [
"op",
"output"
],
"properties": {
"op": {
"enum": [
"trim",
"concat",
"burn_captions",
"fit",
"transcode"
]
},
"input": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"inputs": {
"type": "array",
"minItems": 2,
"maxItems": 100,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"output": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"start": {
"type": [
"number",
"string"
],
"minimum": 0,
"maximum": 86400,
"pattern": "^(\\d{1,2}:)?\\d{1,2}:\\d{2}(\\.\\d{1,3})?$|^\\d+(\\.\\d{1,3})?$",
"description": "Seconds (number) or HH:MM:SS(.mmm)."
},
"end": {
"type": [
"number",
"string"
],
"minimum": 0,
"maximum": 86400,
"pattern": "^(\\d{1,2}:)?\\d{1,2}:\\d{2}(\\.\\d{1,3})?$|^\\d+(\\.\\d{1,3})?$",
"description": "Seconds (number) or HH:MM:SS(.mmm)."
},
"duration": {
"type": [
"number",
"string"
],
"minimum": 0,
"maximum": 86400,
"pattern": "^(\\d{1,2}:)?\\d{1,2}:\\d{2}(\\.\\d{1,3})?$|^\\d+(\\.\\d{1,3})?$",
"description": "Seconds (number) or HH:MM:SS(.mmm)."
},
"reencode": {
"type": "boolean",
"description": "trim: re-encode for frame-accurate cuts (default false = stream copy, cuts at keyframes)."
},
"method": {
"enum": [
"demuxer",
"filter"
],
"description": "concat: demuxer (same codecs, stream copy; default) or filter (re-encode)."
},
"list_file": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"audio": {
"type": "boolean",
"description": "concat filter: include audio (default true)."
},
"subtitles": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"font_size": {
"type": "integer",
"minimum": 8,
"maximum": 200
},
"outline": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"margin_v": {
"type": "integer",
"minimum": 0,
"maximum": 1000
},
"width": {
"type": "integer",
"minimum": 16,
"maximum": 7680
},
"height": {
"type": "integer",
"minimum": 16,
"maximum": 4320
},
"mode": {
"enum": [
"pad",
"crop"
],
"description": "fit: letterbox (pad) or fill (crop). Default pad."
},
"crf": {
"type": "integer",
"minimum": 0,
"maximum": 51
},
"preset": {
"enum": [
"ultrafast",
"superfast",
"veryfast",
"faster",
"fast",
"medium",
"slow",
"slower",
"veryslow"
]
}
}
}
},
"shell": {
"enum": [
"posix",
"powershell"
],
"description": "Quoting style for the command strings. Default posix."
},
"overwrite": {
"type": "boolean",
"description": "Use -y instead of -n. Default false."
},
"ffmpeg_binary": {
"type": "string",
"pattern": "^[A-Za-z0-9_./\\\\: -]{1,260}$",
"description": "Path or name of ffmpeg. Default ffmpeg."
}
}
},
"output_schema": {
"type": "object",
"required": [
"commands",
"executed",
"allowed_options",
"warnings"
],
"properties": {
"commands": {
"type": "array",
"items": {
"type": "object",
"required": [
"op",
"argv",
"command",
"shell",
"notes"
],
"properties": {
"op": {
"type": "string"
},
"argv": {
"type": "array",
"items": {
"type": "string"
}
},
"command": {
"type": "string"
},
"shell": {
"type": "string"
},
"files": {
"type": "array",
"items": {
"type": "object",
"required": [
"path",
"content"
],
"properties": {
"path": {
"type": "string"
},
"content": {
"type": "string"
}
}
}
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"executed": {
"enum": [
false
]
},
"allowed_options": {
"type": "array",
"items": {
"type": "string"
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
{
"name": "export_captions",
"description": "Export captions from script segments as SubRip (SRT) and WebVTT: wraps lines to max_chars_per_line, at most max_lines per cue, splits long segments into cues timed by text length, fixes overlaps, and removes markup and control characters.",
"side_effects": "none",
"requires_confirmation": false,
"input_schema": {
"type": "object",
"additionalProperties": false,
"required": [
"script"
],
"properties": {
"script": {
"type": "object",
"required": [
"segments"
],
"description": "A script (types.json `script`), e.g. the output of AgentRove video-script build_script.",
"properties": {
"title": {
"type": "string",
"maxLength": 300
},
"duration_seconds": {
"type": "number",
"minimum": 0,
"maximum": 86400
},
"segments": {
"type": "array",
"minItems": 1,
"maxItems": 500,
"items": {
"type": "object",
"required": [
"start",
"end",
"text"
],
"properties": {
"start": {
"type": "number",
"minimum": 0,
"maximum": 86400
},
"end": {
"type": "number",
"minimum": 0,
"maximum": 86400
},
"text": {
"type": "string",
"maxLength": 5000
},
"kind": {
"type": "string",
"maxLength": 40
},
"index": {
"type": "integer"
},
"words": {
"type": "integer"
}
}
}
},
"claims": {
"type": "array",
"maxItems": 500,
"items": {
"type": "object",
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"maxLength": 2000
},
"source_url": {
"type": "string",
"maxLength": 2048
},
"sources": {
"type": "array",
"maxItems": 50,
"items": {
"type": "string",
"maxLength": 2048
}
},
"segment": {
"type": "integer",
"minimum": 0
}
}
}
}
}
},
"max_chars_per_line": {
"type": "integer",
"minimum": 16,
"maximum": 80,
"description": "Default 42."
},
"max_lines": {
"type": "integer",
"minimum": 1,
"maximum": 3,
"description": "Default 2."
},
"min_cue_seconds": {
"type": "number",
"minimum": 0.3,
"maximum": 5,
"description": "Shortest cue when splitting. Default 1."
},
"offset_seconds": {
"type": "number",
"minimum": -3600,
"maximum": 3600,
"description": "Shift all cues (e.g. for an intro). Default 0."
}
}
},
"output_schema": {
"type": "object",
"required": [
"captions_srt",
"captions_vtt",
"cues",
"warnings"
],
"properties": {
"captions_srt": {
"type": "string"
},
"captions_vtt": {
"type": "string"
},
"cues": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"start",
"end",
"lines"
],
"properties": {
"index": {
"type": "integer"
},
"start": {
"type": "number"
},
"end": {
"type": "number"
},
"lines": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
{
"name": "render",
"description": "EXECUTES FFmpeg on local files (requires confirm: true after the user approved the exact operations; preview them first with ffmpeg_commands). Same operations as ffmpeg_commands (trim, concat, burn_captions, fit, transcode), run in order; a later operation may use an earlier output. Only files inside the media folder (AGENTROVE_MEDIA_ROOT, or the folder the CLI/MCP server started in) are read or written; inputs are checked with ffprobe; FFmpeg is spawned without a shell with allowlisted options only, a timeout and output size/duration limits; an output never replaces an input and an existing output is kept unless overwrite is true. Needs your own FFmpeg (FFMPEG_PATH or PATH). Returns ffprobe metadata for each output.",
"side_effects": "writes_local_files",
"requires_confirmation": true,
"input_schema": {
"type": "object",
"additionalProperties": false,
"required": [
"operations"
],
"properties": {
"operations": {
"type": "array",
"minItems": 1,
"maxItems": 10,
"items": {
"type": "object",
"required": [
"op",
"output"
],
"properties": {
"op": {
"enum": [
"trim",
"concat",
"burn_captions",
"fit",
"transcode"
]
},
"input": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"inputs": {
"type": "array",
"minItems": 2,
"maxItems": 100,
"items": {
"type": "string",
"minLength": 1,
"maxLength": 1024
}
},
"output": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "Path inside the media folder. Must not exist unless overwrite is true, and may never be one of the inputs."
},
"start": {
"type": [
"number",
"string"
],
"minimum": 0,
"maximum": 86400,
"pattern": "^(\\d{1,2}:)?\\d{1,2}:\\d{2}(\\.\\d{1,3})?$|^\\d+(\\.\\d{1,3})?$",
"description": "Seconds (number) or HH:MM:SS(.mmm)."
},
"end": {
"type": [
"number",
"string"
],
"minimum": 0,
"maximum": 86400,
"pattern": "^(\\d{1,2}:)?\\d{1,2}:\\d{2}(\\.\\d{1,3})?$|^\\d+(\\.\\d{1,3})?$",
"description": "Seconds (number) or HH:MM:SS(.mmm)."
},
"duration": {
"type": [
"number",
"string"
],
"minimum": 0,
"maximum": 86400,
"pattern": "^(\\d{1,2}:)?\\d{1,2}:\\d{2}(\\.\\d{1,3})?$|^\\d+(\\.\\d{1,3})?$",
"description": "Seconds (number) or HH:MM:SS(.mmm)."
},
"reencode": {
"type": "boolean",
"description": "trim: re-encode for frame-accurate cuts (default false = stream copy, cuts at keyframes)."
},
"method": {
"enum": [
"demuxer",
"filter"
],
"description": "concat: demuxer (same codecs, stream copy; default) or filter (re-encode)."
},
"list_file": {
"type": "string",
"minLength": 1,
"maxLength": 1024,
"description": "Ignored by render (the concat list is written to a private temporary folder)."
},
"audio": {
"type": "boolean",
"description": "concat filter: include audio (default true)."
},
"subtitles": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"font_size": {
"type": "integer",
"minimum": 8,
"maximum": 200
},
"outline": {
"type": "integer",
"minimum": 0,
"maximum": 10
},
"margin_v": {
"type": "integer",
"minimum": 0,
"maximum": 1000
},
"width": {
"type": "integer",
"minimum": 16,
"maximum": 7680
},
"height": {
"type": "integer",
"minimum": 16,
"maximum": 4320
},
"mode": {
"enum": [
"pad",
"crop"
],
"description": "fit: letterbox (pad) or fill (crop). Default pad."
},
"crf": {
"type": "integer",
"minimum": 0,
"maximum": 51
},
"preset": {
"enum": [
"ultrafast",
"superfast",
"veryfast",
"faster",
"fast",
"medium",
"slow",
"slower",
"veryslow"
]
},
"subtitles_text": {
"type": "string",
"minLength": 1,
"maxLength": 524288,
"description": "burn_captions: SRT or WebVTT caption text (e.g. export_captions captions_srt) instead of a subtitles file. Written to a private temporary file, never into your folder."
}
},
"additionalProperties": false
}
},
"overwrite": {
"type": "boolean",
"description": "Replace output files that already exist (never inputs). Default false."
},
"timeout_seconds": {
"type": "number",
"minimum": 1,
"maximum": 3600,
"description": "Per-operation time limit. Default 600."
},
"max_output_seconds": {
"type": "number",
"minimum": 1,
"maximum": 14400,
"description": "Longest allowed output, checked before running and enforced with -t. Default 900."
},
"max_output_megabytes": {
"type": "number",
"minimum": 1,
"maximum": 16384,
"description": "Largest allowed output file, enforced with -fs; an output that reaches it is removed. Default 1024."
},
"confirm": {
"type": "boolean",
"description": "Must be true. Set only after the user approved these exact operations and file names."
}
}
},
"output_schema": {
"type": "object",
"required": [
"executed",
"media_root",
"ffmpeg",
"results",
"warnings"
],
"properties": {
"executed": {
"enum": [
true
]
},
"media_root": {
"type": "string"
},
"ffmpeg": {
"type": "object",
"required": [
"path",
"ffprobe_path",
"version"
],
"properties": {
"path": {
"type": "string"
},
"ffprobe_path": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"op",
"output",
"argv",
"exit_code",
"elapsed_ms",
"output_metadata",
"notes"
],
"properties": {
"index": {
"type": "integer"
},
"op": {
"type": "string"
},
"output": {
"type": "string"
},
"argv": {
"type": "array",
"items": {
"type": "string"
}
},
"exit_code": {
"type": "integer"
},
"elapsed_ms": {
"type": "number"
},
"output_metadata": {
"type": "object",
"required": [
"path",
"container",
"format_name",
"streams"
],
"properties": {
"path": {
"type": "string"
},
"container": {
"type": "string"
},
"format_name": {
"type": "string"
},
"duration_seconds": {
"type": "number"
},
"size_bytes": {
"type": "number"
},
"bit_rate": {
"type": "number"
},
"streams": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"codec_type",
"codec_name"
],
"properties": {
"index": {
"type": "integer"
},
"codec_type": {
"type": "string"
},
"codec_name": {
"type": "string"
},
"profile": {
"type": "string"
},
"width": {
"type": "integer"
},
"height": {
"type": "integer"
},
"pix_fmt": {
"type": "string"
},
"frame_rate": {
"type": "number"
},
"display_aspect_ratio": {
"type": "string"
},
"sample_aspect_ratio": {
"type": "string"
},
"sample_rate": {
"type": "number"
},
"channels": {
"type": "integer"
}
}
}
}
}
},
"notes": {
"type": "array",
"items": {
"type": "string"
}
},
"ffmpeg_messages": {
"type": "string"
}
}
}
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
],
"permissions": {
"filesystem": "read_write",
"network": [],
"credentials": [],
"notes": "No network and no credentials. Only render touches files or starts processes: it runs the user's own ffmpeg/ffprobe (spawned without a shell) and reads and writes media only inside the media folder (AGENTROVE_MEDIA_ROOT or the start folder), plus a private temporary folder for caption and concat-list files that it deletes afterwards. Optional configuration (not secrets): FFMPEG_PATH, FFPROBE_PATH, AGENTROVE_MEDIA_ROOT. plan_production, export_captions and ffmpeg_commands are fully offline and touch no files."
},
"io_types": {
"captions_vtt": {
"textual": true,
"description": "WebVTT caption text."
},
"shot_list": {
"textual": false,
"description": "Array of {id, segment, kind, start, end, duration, type: a_roll or b_roll, framing, description, broll_id?, text_ids} derived from a script (seconds)."
}
},
"io": {
"inputs": [
{
"name": "script",
"type": "script"
}
],
"outputs": [
{
"name": "captions_srt",
"type": "captions_srt"
},
{
"name": "captions_vtt",
"type": "captions_vtt"
},
{
"name": "shots",
"type": "shot_list"
}
]
},
"runtimes": [
{
"id": "node",
"version": ">=20",
"tested": true,
"notes": "render also needs FFmpeg + ffprobe (a build with libx264, libvpx-vp9, libopus and libass). Tested by AgentRove with FFmpeg 9.1 (gyan.dev essentials build) on Windows 11; other FFmpeg builds and platforms not yet verified."
},
{
"id": "claude-code",
"tested": false,
"notes": "MCP stdio server; not yet verified in Claude Code by AgentRove"
}
],
"external_costs": "None. Runs locally; no API keys, no network. render needs your own FFmpeg install (free; LGPL or GPL depending on the build); caption burn-in needs an FFmpeg build with libass, WebM output needs libvpx-vp9 and libopus."
}