Edit video
autonomous_editRun a natural-language video edit end-to-end: plan, execute, verify, and export from a brief, returning the final MP4 URL when export is queued.
Instructions
PRIMARY EDIT TOOL. Run a natural-language video edit end-to-end. The backend agent plans, executes, verifies, and exports. Accepts anything from a one-liner ("generate 3 viral clips with captions and export") to a multi-paragraph creative brief. Returns the final mp4 URL synchronously when an export is queued. For long renders you may prefer queue_edit + check_job_status.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "autonomous_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | Optional existing scene/timeline state to continue editing (advanced). | |
| assets | No | Optional 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). | |
| prompt | Yes | Natural-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 verbatim — do not pre-decompose. | |
| brandId | No | Optional per-call brand profile id (brand kits are managed in the Levea studio or with the MCP server's brand-kit tools). | |
| core_only | No | Return rendering-essential scene fields only (smaller payloads). | |
| video_url | No | Optional 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 server: call asset_upload_url, PUT the bytes to uploadUrl, then pass the returned fileUrl here). | |
| editedPlan | No | Optional pre-edited plan object returned by a prior awaiting_approval response. | |
| project_id | No | Optional project id for tracking and continuity. Reuse the projectId returned by the first call for every continuation. | |
| planDecision | No | Typed 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 to revise the plan with a new prompt instead. | |
| flaggedIssues | No | Optional list of specific user-flagged problems for this run (e.g. ["caption #3 misspelled"]). | |
| workingMemory | No | Working memory returned by an awaiting-approval call; resend it to resume. | |
| attachedImages | No | Optional reference image URLs used for planning. | |
| projectBrandId | No | Optional default brand for the project. Persists; per-call brandId overrides. | |
| captionTemplateMode | No | How to apply captionTemplatePreset. | |
| requirePlanApproval | No | If true, the backend stops after planning and returns workingMemory for user approval. Resend with workingMemory (and optionally editedPlan) to continue. | |
| style_reference_url | No | Optional 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 user's footage to match its style. Its footage, wording, logos and music are never reused. Use this instead of pasting the link into the prompt when the link is a reference, not footage to edit. | |
| captionTemplatePreset | No | Optional 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, list_caption_templates lists the exact ids. |