Skip to main content
Glama

Edit video

autonomous_edit
Destructive

Run 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

NameRequiredDescriptionDefault
sceneNoOptional existing scene/timeline state to continue editing (advanced).
assetsNoOptional 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).
promptYesNatural-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.
brandIdNoOptional per-call brand profile id (brand kits are managed in the Levea studio or with the MCP server's brand-kit tools).
core_onlyNoReturn rendering-essential scene fields only (smaller payloads).
video_urlNoOptional 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).
editedPlanNoOptional pre-edited plan object returned by a prior awaiting_approval response.
project_idNoOptional project id for tracking and continuity. Reuse the projectId returned by the first call for every continuation.
planDecisionNoTyped 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.
flaggedIssuesNoOptional list of specific user-flagged problems for this run (e.g. ["caption #3 misspelled"]).
workingMemoryNoWorking memory returned by an awaiting-approval call; resend it to resume.
attachedImagesNoOptional reference image URLs used for planning.
projectBrandIdNoOptional default brand for the project. Persists; per-call brandId overrides.
captionTemplateModeNoHow to apply captionTemplatePreset.
requirePlanApprovalNoIf true, the backend stops after planning and returns workingMemory for user approval. Resend with workingMemory (and optionally editedPlan) to continue.
style_reference_urlNoOptional 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.
captionTemplatePresetNoOptional 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.7.1
    • changedInput schema / properties / assets / description
      Previous value: -"Optional input media assets. URLs must be public HTTP/HTTPS links."New value: +"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)."
    • addedInput schema / properties / style_reference_url
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
    • changedInput schema / properties / video_url / description
      Previous value: -"Optional public source video URL (HTTP/HTTPS: S3, Google Drive public link, Dropbox, direct MP4) for a new project. Local file paths are not supported."New value: +"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)."
  2. Changed3 schema fields changedv0.6.8
    • changedInput schema / properties / brandId / description
      Previous value: -"Optional per-call brand profile id (see list_brand_kits)."New value: +"Optional per-call brand profile id (brand kits are managed in the Levea studio or with the MCP server's brand-kit tools)."
    • changedInput schema / properties / captionTemplatePreset / description
      Previous value: -"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. Call list_caption_templates for the exact ids available."New value: +"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."
    • addedInput schema / properties / planDecision
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "approve"
      +  ],
      +  "type": "string"
      +}
  3. Changed12 schema fields changedv0.6.2
    • changedInput schema / properties / assets / description
      Previous value: -"Optional asset descriptors. Each item: { id?, type: \"video\"|\"image\"|\"audio\", url|src, mimeType?, duration? }."New value: +"Optional input media assets. URLs must be public HTTP/HTTPS links."
    • addedInput schema / properties / assets / items / properties
      Added value: +{
      +  "duration": {
      +    "type": "number"
      +  },
      +  "id": {
      +    "type": "string"
      +  },
      +  "mimeType": {
      +    "type": "string"
      +  },
      +  "type": {
      +    "enum": [
      +      "video",
      +      "audio",
      +      "image"
      +    ],
      +    "type": "string"
      +  },
      +  "url": {
      +    "description": "Publicly accessible HTTP/HTTPS URL to the video, image, or audio asset.",
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / assets / items / required
      Added value: +[
      +  "url"
      +]
    • changedInput schema / properties / attachedImages / description
      Previous value: -"Optional base64-encoded reference images the agent should consider while planning."New value: +"Optional reference image URLs used for planning."
    • changedInput schema / properties / brandId / description
      Previous value: -"Optional brand-profile id to apply for this call (palette, fonts, logo, voice, gradeBias). Look up ids via list_brand_kits. Overrides project default brand."New value: +"Optional per-call brand profile id (see list_brand_kits)."
    • changedInput schema / properties / captionTemplatePreset / description
      Previous value: -"Optional caption template slug to apply when (re)generating captions. One of 41 builtins (hormozi, mrbeast, viral-pop, minimal-pro, karaoke, neon-pop, typewriter, pop-wave, subtitle-bar, creator-box, …) or a user-saved template id from list_caption_templates."New value: +"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. Call list_caption_templates for the exact ids available."
    • changedInput schema / properties / core_only / description
      Previous value: -"If true, response carries only rendering-essential scene fields (no debug metadata)."New value: +"Return rendering-essential scene fields only (smaller payloads)."
    • changedInput schema / properties / project_id / description
      Previous value: -"Optional project id for tracking / continuity."New value: +"Optional project id for tracking and continuity. Reuse the projectId returned by the first call for every continuation."
    • changedInput schema / properties / prompt / description
      Previous value: -"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 into multiple calls."New value: +"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."
    • changedInput schema / properties / requirePlanApproval / description
      Previous value: -"If true, the agent stops after planning and returns { status: \"awaiting_approval\", workingMemory, plan } without mutating. Resume by re-calling with the returned workingMemory + an approval prompt (\"yes\", \"approve\", \"do it\")."New value: +"If true, the backend stops after planning and returns workingMemory for user approval. Resend with workingMemory (and optionally editedPlan) to continue."
    • changedInput schema / properties / video_url / description
      Previous value: -"Optional source video URL. Auto-seeded as the starting layer when no scene is provided."New value: +"Optional public source video URL (HTTP/HTTPS: S3, Google Drive public link, Dropbox, direct MP4) for a new project. Local file paths are not supported."
    • changedInput schema / properties / workingMemory / description
      Previous value: -"Working-memory snapshot returned by a prior call (typically one that returned awaiting_approval). Re-sending resumes that run."New value: +"Working memory returned by an awaiting-approval call; resend it to resume."
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=false and destructiveHint=true; the description adds genuinely new behavior — the backend is an autonomous planner/executor/verifier, and export yields a synchronous mp4 URL. It does not explain what the 'destructive' flag actually implies (e.g. whether an existing project/timeline is overwritten or a new project is created), which is the one notable gap for a mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences, front-loaded with the tool's role in caps and then descending into scope, return behavior, and the alternative. Every sentence carries a distinct decision-relevant fact with no restatement of the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 17-parameter, nested-object, no-output-schema tool, the description covers role, input flexibility, return value (mp4 URL), and the queueing alternative. It omits how the approval/workingMemory loop behaves in practice and what destructive means, but those are partly covered by the schema's own parameter descriptions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the 17 parameters are heavily self-documented (approval flow, asset URLs, style reference, caption templates), so the schema carries the semantic load. The description adds no parameter-level detail beyond echoing the approval/continuation flow, which is the expected baseline-3 outcome when the schema is this rich.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opening line states a specific verb and resource ('Run a natural-language video edit end-to-end') and explicitly labels itself the 'PRIMARY EDIT TOOL', then explains the backend does plan/execute/verify/export. It distinguishes itself from queue_edit by describing the synchronous return of the final mp4 URL, so an agent can route correctly without opening a sibling schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete when-to-use signals: accepts anything from a one-liner to a multi-paragraph brief, and 'For long renders you may prefer queue_edit + check_job_status' names an alternative with the condition that selects it. The alternative guidance is hedged ('may prefer') rather than a crisp rule, and it does not mention the streaming variant, so it falls short of a full 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.