Levea — Autonomous AI Video Editor (37 Tools, 280+ Caption Templates, OAuth 2.1)

v0.7.6
io.github.brajendrak00068/levea-mcp-server Checked 4 hours ago Published 5 days ago

Autonomous AI video editor over MCP: viral clips, captions, reframe, chroma key, MP4 export.

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

autonomous_edit Edit video

PRIMARY EDIT TOOL. Runs a natural-language video edit end-to-end: Levea's editing agent plans, edits, checks the rendered frames and exports. Send the user's brief verbatim, from one line to a multi-paragraph creative brief. Waits up to 5 min, but a full edit can take 10-20 min: prefer queue_edit for long edits. The first progress notification names the project_id; if the wait ends first the result is status "running" — follow it with get_active_task, never re-send the edit.

ParameterTypeDescription
prompt *stringNatural-language description of the desired edit or creative brief. The backend planner decomposes it into canonical actions (viral clips, captions, reframe, export, …). Send the user's intent verba…
assetsarrayOptional input media assets. URLs must be public HTTP/HTTPS links; upload local files first (with the MCP server: asset_upload_url, then use the returned fileUrl).
attachedImagesarrayOptional reference image URLs used for planning.
brandIdstringOptional per-call brand profile id (brand kits are managed in the Levea studio or with the MCP server's brand-kit tools).
captionTemplateModestringHow to apply captionTemplatePreset.
captionTemplatePresetstringOptional caption template to apply when (re)generating captions: a builtin slug (e.g. hormozi, mrbeast, viral-pop, karaoke, neon-pop, subtitle-bar) or a user-saved template id. With the MCP server, li…
core_onlybooleanReturn rendering-essential scene fields only (smaller payloads).
editedPlanobjectOptional pre-edited plan object returned by a prior awaiting_approval response.
filesarrayVideo / audio / image files the user attached in this chat (ChatGPT fills this in). They are copied into Levea; the first video seeds the project (unless video_url is set), the rest become assets. Use…
flaggedIssuesarrayOptional list of specific user-flagged problems for this run (e.g. ["caption #3 misspelled"]).
planDecisionstringTyped approval of a plan returned by an awaiting_approval response. Send "approve" together with the workingMemory (and optionally editedPlan) from that response to run the plan as proposed. Omit it t…
projectBrandIdstringOptional default brand for the project. Persists; per-call brandId overrides.
project_idstringOptional project id for tracking and continuity. Reuse the projectId returned by the first call for every continuation.
requirePlanApprovalbooleanIf true, the backend stops after planning and returns workingMemory for user approval. Resend with workingMemory (and optionally editedPlan) to continue.
sceneobjectOptional existing scene/timeline state to continue editing (advanced).
skillsarrayOptional list of your own skill ids ("user/<slug>", from save_skill / search_skills { mine: true }) to apply to this edit: each playbook guides the editing agent, and the style it sets (brand_id, capt…
style_reference_urlstringOptional link to a style-reference video (YouTube, TikTok, Instagram, Drive, or a direct file URL). The editor downloads and measures it (cuts, beats, caption look, transitions, grade) and edits the u…
video_urlstringOptional public source video URL (HTTP/HTTPS: S3, Google Drive public link, Dropbox, direct MP4) for a new project. A local file path cannot be read directly: upload the file first (with the MCP serve…
workingMemoryobjectWorking memory returned by an awaiting-approval call; resend it to resume.

autonomous_edit_streaming Edit video (live progress)

autonomous_edit with live progress: same parameters (documented on autonomous_edit), per-step MCP progress notifications, waits up to 30 min. Returns the final result.

ParameterTypeDescription
prompt *string
assetsarray
attachedImagesarray
brandIdstring
captionTemplateModestring
captionTemplatePresetstring
core_onlyboolean
editedPlanobject
filesarrayVideo / audio / image files the user attached in this chat (ChatGPT fills this in). They are copied into Levea; the first video seeds the project (unless video_url is set), the rest become assets. Use…
flaggedIssuesarray
planDecisionstring
projectBrandIdstring
project_idstring
requirePlanApprovalboolean
sceneobject
skillsarray
style_reference_urlstring
video_urlstring
workingMemoryobject

queue_edit Queue video edit

Preferred for long edits: queues an autonomous edit and returns a taskId at once, so no client timeout applies. Same fields as autonomous_edit (documented there) plus platforms / autoExport. Poll check_task_status { task_id } or get_active_task { project_id }.

ParameterTypeDescription
prompt *stringNatural-language description of the desired edit or creative brief. The backend planner decomposes it into canonical actions (viral clips, captions, reframe, export, …). Send the user's intent verba…
assetsarray
autoExportbooleanAutomatically export after the queued edit.
captionTemplateModestring
captionTemplatePresetstring
filesarrayVideo / audio / image files the user attached in this chat (ChatGPT fills this in). They are copied into Levea; the first video seeds the project (unless video_url is set), the rest become assets. Use…
platformsarrayOptional export platforms for the queued edit.
project_idstring
sceneobject
video_urlstring

create_shader_effect Create shader effect

Save a reusable ShaderFX effect: WGSL defining fn fx(c: FxCtx) -> vec4<f32> (straight rgba). Validated before saving; errors come back as [{ line, column, message }] in your source lines. Returns effect_id and the param table. FxCtx, helpers, manifest and v3 (textures, feedback, passes, data, particles) with examples: load_skill shaderfx-effects.

ParameterTypeDescription
manifest *object{ kind: "filter"|"transition"|"generator", output: "add"|"normal"|"replace", params: [{ name, type: float|vec2|vec3|color|bool, min?, max?, default }] }; v3 adds passes / textures / feedback / geometr…
name *stringEffect name.
source *stringWGSL with fn fx(c: FxCtx) -> vec4<f32> (no bindings, no @fragment). ≤ 24 KB (v3: 48 KB).
dataarray[v3] Up to 16384 floats for data(i).
data_urlstring[v3] URL of a JSON array or CSV, resolved to floats at apply time.
descriptionstringOne-line description.
feedbackobject[v3] { enabled, warmup_sec?, clear? }: prev(uv) reads the previous output frame.
geometryobject[v3] { mode: "quads"|"points", count }: instanced particles drawn by fn instance(i, c).
is_publicbooleanShare publicly (default false).
overwritebooleanReplace your effect with the same name.
project_idstringOptional project context.
texturesarray[v3] Up to 4 named textures; read with tex_<name>(uv).

list_shader_effects List shader effects

List the ShaderFX effects in your library (id, name, kind, output, params). Pass an id to apply_shader_effect.

ParameterTypeDescription
include_publicbooleanAlso list public effects.
limitnumberMax effects to return.
project_idstringOptional project context.
querystringName / description filter.

apply_shader_effect Apply shader effect

Put a ShaderFX effect on a project (committed at once): a saved effect_id, or inline source + manifest. "filter": target_layer_id (omit = everything below), window start_time / end_time. "transition": from_layer_id + to_layer_id, overlap duration_sec (default 0.8) on media handles. "generator": paints on its own. params by manifest name; param_keyframes animates them. Check with render_preview. Details: load_skill shaderfx-effects.

ParameterTypeDescription
project_id *stringProject whose committed scene is edited.
dataarray[v3] Up to 16384 floats for data(i).
data_columnsarray[v3] CSV data_url columns (names or 0-based indexes).
data_urlstring[v3] URL of a JSON array or CSV, resolved to floats at apply time.
duration_secnumber[transition] Overlap length (default 0.8).
easingstring[transition] Easing of progress, e.g. ease_in_out.
effect_idstringSaved effect id.
end_timenumber[filter/generator] Timeline end (s).
feedbackobject[v3] { enabled, warmup_sec?, clear? }: prev(uv) reads the previous output frame.
from_layer_idstring[transition] Outgoing clip.
geometryobject[v3] { mode: "quads"|"points", count }: instanced particles drawn by fn instance(i, c).
intensitynumberc.intensity (default 1).
kindstring
manifestobjectInline manifest (with source).
opacitynumberLayer opacity 0..1.
outputstringOverride the manifest output mode.
param_keyframesobject{ "<param>": [{ time, value, easing? }, …] } (≥ 2 keyframes each).
paramsobjectParam values by manifest name, e.g. { "strength": 0.8 }.
sourcestringInline WGSL (with manifest), instead of effect_id.
start_timenumber[filter/generator] Timeline start (s).
target_layer_idstring[filter] Layer whose picture src() reads.
texturesarray[v3] Up to 4 named textures; read with tex_<name>(uv).
to_layer_idstring[transition] Incoming clip.

delete_shader_effect Delete shader effect

Delete a saved ShaderFX effect. Layers already using it keep their own copy.

ParameterTypeDescription
effect_id *stringEffect id to delete.
project_idstringOptional project context.

check_job_status Check job status

Poll an export / async job by jobId (numeric). wait: true blocks until it finishes (progress notifications while it renders).

ParameterTypeDescription
job_id *stringJob id to poll (numeric).
waitbooleanBlock until terminal state.

check_task_status Check task status

Poll a queued edit by taskId (from queue_edit), or a direct call that answered status "running" (taskId "dc_…": waits up to ~25 s; its result is that call's full response once finished). Exports use check_job_status.

ParameterTypeDescription
task_id *stringTask id from queue_edit, or a "dc_…" id.

get_active_task Get active task

The edit currently running on a project, if any. Use it to follow an edit whose call returned status "running" or whose client stopped waiting.

ParameterTypeDescription
project_id *stringProject id.

list_caption_templates List caption templates

List caption templates (builtin + your saved ones): slugs, names, style summaries.

apply_caption_template Apply caption template

Apply a caption template to a project directly (without autonomous_edit).

ParameterTypeDescription
template_id *stringTemplate slug / id from list_caption_templates.
modestring
project_idstringProject to apply to.
sceneobjectInline scene (alternative to project_id).

save_caption_template Save caption template

Save a new caption template you can re-apply later.

ParameterTypeDescription
name *stringDisplay name.
style *objectStyle (font, color, position, animation, …).
tagsarrayOptional tags.

save_current_caption_template Save current captions as template

Save the caption styling currently on a project as a reusable template.

ParameterTypeDescription
name *stringTemplate display name.
project_idstringProject to snapshot from.
sceneobjectInline scene (alternative to project_id).

delete_caption_template Delete caption template

Delete one of your saved caption templates by id.

ParameterTypeDescription
template_id *string

list_brand_kits List brand kits

List your brand profiles (palette, fonts, logo, voice, gradeBias); pass an id as autonomous_edit brandId / projectBrandId.

get_brand_kit Get brand kit

Fetch one brand profile by id.

ParameterTypeDescription
brand_id *string

create_brand_kit Create brand kit

Create a brand profile: name, palette {primary,secondary,accent,neutral,extras[]}, fonts {primary,secondary}, gradeBias, forbiddenColors[], logoAssetUrl, voiceTone, enforcement (soft|hard).

ParameterTypeDescription
name *string
enforcementstring
fontsobject
forbiddenColorsarray
gradeBiasstring
logoAssetUrlstring
paletteobject
voiceTonestring

update_brand_kit Update brand kit

Update a brand profile by id (same fields as create_brand_kit).

ParameterTypeDescription
brand_id *string
enforcementstring
fontsobject
forbiddenColorsarray
gradeBiasstring
logoAssetUrlstring
namestring
paletteobject
voiceTonestring

delete_brand_kit Delete brand kit

Delete a brand profile.

ParameterTypeDescription
brand_id *string

list_projects List projects

List your projects.

get_project Get project

One project's record (name, revision, dates) with a short layer index. include_scene: true returns the full scene JSON (several MB); execute_action timeline_view is the compact view of the edit.

ParameterTypeDescription
project_id *string
include_scenebooleanReturn the full scene JSON instead of the layer index.

create_project Create project

Create a new project, optionally with a brandId.

ParameterTypeDescription
name *string
brandIdstring
descriptionstring

delete_project Delete project

Delete a project.

ParameterTypeDescription
project_id *string

asset_upload_url Get asset upload URL

Signed upload URL for a file on the caller's own disk. Returns { uploadUrl, fileUrl }: PUT the bytes to uploadUrl, then pass fileUrl as video_url / in assets[]. A file the user attached in a chat (ChatGPT) needs no upload: pass it in `files` on autonomous_edit / queue_edit / execute_batch / execute_action.

ParameterTypeDescription
fileName *string
contentTypestringMIME type, e.g. video/mp4.
fileTypestringvideo | image | audio (from the extension if omitted).
projectIdstringOptional project to associate the asset with.

list_assets List assets

List your uploaded assets, optionally by projectId / fileType.

ParameterTypeDescription
fileTypestringvideo | image | audio.
projectIdstring

delete_asset Delete asset

Delete an asset by file name (the path asset_upload_url returned).

ParameterTypeDescription
fileName *string

transcribe_asset Transcribe asset

Transcribe an asset (cached). Default: language, duration, speakers, transcript_id and one page of timed sentence lines. detail "words": paged word timings; "full": the raw record (very large).

ParameterTypeDescription
fileName *stringAsset path.
detailstring
languagestringASR language hint.
limitintegerMax lines / words per page (words: default 500, max 1000).
offsetintegernext_offset from the previous page.

editor_health Check editor health

Connectivity check against the Levea API (unauthenticated).

search_tools Search canonical editor tools

Search the directly callable editing actions, read/inspection tools and preset catalogs (caption templates, GPU VFX, transitions, color LUTs, title cards, fonts, blend modes). With a query, matching actions come back with their parameter specs (required params end in "*"). Also returns the editorialPlaybook (fastest call pattern, NLE order, pro workflow). No query = the whole surface.

ParameterTypeDescription
catalogstringCatalog filter (default all).
categorystringDomain / category filter.
detailstringsummary (default) or full action descriptions.
include_schemasbooleanForce parameter specs on / off (default on for ≤ 25 matches).
limitnumberMax results (preset catalogs default to 50).
offsetnumbernextOffset from a previous page.
querystringKeyword, e.g. "karaoke", "whip_pan", "teal_orange", "chromakey".

get_action_schema Get canonical action schema

Full input schema and constraints of canonical actions (e.g. COLOR_GRADE, TRIM_LAYER, GENERATE_CAPTIONS, EXPORT_VIDEO) or read tools (e.g. query_transcript, inspect_layer).

ParameterTypeDescription
actionstringAction or read tool name.
actionsarraySeveral names at once (up to 40); large schemas are summarised (see `compacted`, schemaDetail.paramsOmitted).
detailstringsummary (default, ≤ ~10k tokens) or the whole stored schema.
paramsarrayOnly these parameters, in full (nested schemas, every enum value).
params_by_actionobjectPer-action parameter lists with actions: [...], e.g. { "COLOR_GRADE": ["lut"] }.

execute_action Execute canonical editor action

Run one canonical editor action or read tool (timeline_view, list_layers, inspect_layer, query_transcript, list_sources, shot_timeline, measure_audio, measure_picture, …) on a project. Pass video_url or assets on the first call to seed a project. Params accept references (@last, @primary, @all:<kind>, @end-3 …). Params are checked first (INVALID_PARAMS with suggestions). Several edits: execute_batch.

ParameterTypeDescription
action *stringCanonical action (e.g. TRIM_LAYER, VERTICAL_REFRAME, COLOR_GRADE, GENERATE_CAPTIONS, EXPORT_VIDEO) or read tool name.
action_paramsobjectThe action's parameters (search_tools / get_action_schema).
allow_unknown_paramsbooleanRun despite params an action does not take (they are ignored and listed).
assetsarrayMedia assets to seed a new project (first call only).
dry_runbooleanOnly check params (fast); nothing runs.
filesarrayVideo / audio / image files the user attached in this chat (ChatGPT fills this in). They are copied into Levea; the first video seeds the project (unless video_url is set), the rest become assets. Use…
idempotency_keystringYour id for this logical call: a resend returns the first answer instead of applying twice.
include_scenebooleanReturn the full scene JSON (large).
new_projectbooleanWith video_url / assets and no project_id: always create a new project, even if this source is already being edited in one (otherwise refused with SEED_DUPLICATE_PROJECT).
project_idstringProject to edit; reuse the id the first call returned.
reconcilebooleanDefault true: after a change, a structural finishing pass (safe-zone repair, timeline reconcile, layout de-stacking) runs; the response lists each run in finishingApplied and what it changed in struct…
rerunbooleanRun an identical call again on purpose.
sceneobjectInline scene (advanced; the server keeps the project scene).
variantstringEdit / read a variant (fork_variant id or label) of project_id instead of its main scene.
video_urlstringSource video URL to seed a new project (first call only).

execute_batch Execute canonical action batch

Run an ordered list of canonical actions and/or read tools (≤ 25 steps) in one round trip. The whole batch is validated before anything runs (unknown actions, bad params → INVALID_PARAMS with suggestions; destructive actions need confirm_destructive: true) and is atomic unless allow_partial: the first failed step stops it and nothing is saved (BATCH_STEP_FAILED). One receipt per step. A structural finishing pass runs after the steps unless reconcile: false (finishingApplied). Without project_id the result is not saved (persisted: false). Results are unverified: check with render_preview be…

ParameterTypeDescription
actions *arrayOrdered { action, params } steps.
allow_partialfalse (default): the first failed step stops the batch and nothing is saved (failureCode BATCH_STEP_FAILED, failedStepIndex). true: every step runs and the ones that succeeded are saved; the response…
allow_unknown_paramsbooleanRun despite params an action does not take (they are ignored and listed).
assetsarrayMedia assets to seed a new project (first call only).
confirm_destructivebooleanRequired true for destructive actions (CLEAR, bulk DELETE_LAYER, …).
dry_runbooleanOnly check params (fast); nothing runs.
filesarrayVideo / audio / image files the user attached in this chat (ChatGPT fills this in). They are copied into Levea; the first video seeds the project (unless video_url is set), the rest become assets. Use…
idempotency_keystringYour id for this logical call: a resend returns the first answer instead of applying twice.
include_scenebooleanReturn the full scene JSON (large).
new_projectbooleanWith video_url / assets and no project_id: always create a new project, even if this source is already being edited in one (otherwise refused with SEED_DUPLICATE_PROJECT).
project_idstringProject to edit; reuse the id the first call returned.
reconcilebooleanDefault true: after a change, a structural finishing pass (safe-zone repair, timeline reconcile, layout de-stacking) runs; the response lists each run in finishingApplied and what it changed in struct…
rerunbooleanRun an identical call again on purpose.
sceneobjectInline scene (advanced; the server keeps the project scene).
variantstringEdit / read a variant (fork_variant id or label) of project_id instead of its main scene.
video_urlstringSource video URL to seed a new project (first call only).

render_preview Render GPU preview screenshots

Render GPU-composited JPEG frames of the live timeline at given timestamps (optional 0..1 region crop): every layer, caption, title, grade and effect. Returns MCP image blocks to inspect before EXPORT_VIDEO.

ParameterTypeDescription
project_idstringProject to render.
regionobjectZoom region in 0..1 coordinates.
sceneobjectInline scene (advanced).
timestampsarrayTimeline seconds, e.g. [1, 5, 12].
variantstringRender a variant (fork_variant id or label) of project_id instead of its main scene.

search_skills Search production craft skills

Search Levea craft playbooks (SKILL.md: editing, color, captions, audio mixing, motion graphics, VFX, documentary, podcast, social shorts). Your own saved skills come first (source "user"); mine: true lists only yours.

ParameterTypeDescription
categorystringCategory filter.
limitnumberMax skills (default 20).
minebooleanOnly your own saved skills.
querystringKeyword, e.g. "color", "podcast", "motion".

load_skill Load production craft skill

Load the full playbook (SKILL.md) and resource list of one or more skills from search_skills.

ParameterTypeDescription
skill_idstringSkill id, e.g. "color-grading-finishing".
skill_idsarraySeveral skill ids.

read_skill_resource Read skill reference resource

Read a bundled reference or template file ("references/…", "templates/…") of a skill.

ParameterTypeDescription
resource *stringRelative path inside the skill.
skill_idstringSkill that owns the resource.

save_skill Save your own skill

Save (or update) your own SKILL.md playbook as "user/<slug>" so the editor edits your way. search_skills lists it first, load_skill loads it, and autonomous_edit / queue_edit apply it when named in `skills` (or always, with frontmatter apply: always). Frontmatter: name, description, tags, categories, actions, apply, brand_id, caption_template, style_reference_url. Pass skill_md, or with the local npx server a path. Limits: 50 skills, 48k-character playbook, 12 resources.

ParameterTypeDescription
apply_by_defaultbooleanApply to every autonomous_edit (overrides frontmatter).
pathstringLocal npx server only: a SKILL.md file or its folder (other text files upload as resources).
resourcesobjectBundled text files, { "references/look.md": "…" }.
skill_idstringSlug to save under (default: frontmatter name).
skill_mdstringThe whole SKILL.md (YAML frontmatter, then markdown).

delete_skill Delete your own skill

Delete one of your saved skills ("user/<slug>").

ParameterTypeDescription
skill_id *stringThe skill to delete ("user/<slug>").