Skip to main content
Glama

Edit Scene

edit_scene
DestructiveIdempotent

Change one scene; pass only what changes. Nothing is re-rendered here: the result's regenerate_mode tells you which regenerate_scene mode applies it (none during script review, where approve_script renders everything anyway).

    - narration: the exact words spoken. Use it to fix mispronounced, wrong or garbled words
      (write names/numbers the way they should be said). On a rendered video Fabeo re-writes the
      scene's prompts with the new line on regenerate_scene(mode='narration'). If the voice is still
      wrong after that (pronunciation, a regional language or accent, gibberish), offer the user to
      record the line themselves: set_scene_audio.
    - visual_description: what the scene shows (setting, action, outfit, camera). Also
      re-written into the prompts on regenerate_scene(mode='narration').
    - positive_prompt (rendered scenes only; clip clip_index, see get_scene_prompts): write the
      clip's MiniMax H3 prompt yourself for exact control. It drives BOTH picture and sound, so
      it must quote the narration word for word in its audio part (the whole line for a one-clip
      scene, this clip's consecutive part otherwise) -- it is rejected if it doesn't; to change
      the words pass narration too. H3 style: one continuous take (no cuts or montage),
      concrete subject/appearance/outfit/setting/camera motion, no on-screen text; in
      reference-image scenes open with '<Subject 1> is ... in <Picture 1>'. A hand-written
      prompt is kept as written (Fabeo won't overwrite it).
    - keyframe (rendered scenes only): 'keep' (default); 'variant' to try a different key
      frame for the clip; 'upload' to open the clip on the user's own image -- upload it first
      with get_start_frame_upload_url (the clip then animates from that exact frame, so describe
      motion from it in positive_prompt).
    - duration_seconds: the scene's length (2-15s per clip). The clip renders exactly this long,
      so shorten it to cut music, silence or garbled speech after the voiceover ends; a length
      shorter than the narration needs cuts the voiceover (the result warns). Shorter scenes
      also cost fewer credits. Applied by regenerate_scene(mode='clips') on a rendered video.
    - start_frame_image_key / end_frame_image_key: make the scene open on, and/or land on, the
      user's own pictures. Works during script review (before approve_script) and on a rendered
      video. Get the key first like a reference image (upload_reference_image,
      get_reference_upload_url, or get_reference_upload_page + check_reference_upload; this needs
      the user's rights confirmation) -- not get_start_frame_upload_url, which is per rendered clip.
      In a chat app the user can't attach files: give them the get_reference_upload_page link (this
      is how a user swaps in THEIR product photo: open or end the scene on it).
      The start frame is the scene's first clip's opening picture; the end frame is where its last
      clip should finish. They must be two different images; they are separate from the scene's
      reference images (the people/products shown). Describe the motion between them in
      positive_prompt. Check them in get_video / get_scene_prompts (start_frame, end_frame);
      remove_start_frame / remove_end_frame undo. On a rendered video apply with
      regenerate_scene(mode='images').
    - reference_image_keys (1-5): REPLACE the pictures of the people/products this scene shows
      (e.g. swap the bottle for the user's own bottle photo). Only for a scene that already shows
      reference photos (made with create_video(reference_image_keys=...)). Get the keys like any
      reference image (get_reference_upload_page + check_reference_upload in chat apps; needs the
      rights confirmation). Pass ALL photos the scene should show -- they replace the old set, so
      include any you want to keep. Its prompts are re-written for the new photos on
      regenerate_scene(mode='narration'); then check them with get_scene_prompts.

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": {
      "video_id": "<video_id>",
      "scene_id": "<scene_id>"
    },
    "name": "edit_scene"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyframeNo'keep' (default), 'variant' for a different key frame, or 'upload' to open the clip on the user's own start frame (see below).keep
scene_idYesThe scene's scene_id, from get_video.
video_idYesThe video's video_id (from create_video, list_videos or get_video).
narrationNoNew spoken line, word for word (see below).
clip_indexNo0-based clip within the scene (see get_scene_prompts); most scenes have one clip.
positive_promptNoHand-written MiniMax H3 prompt for clip clip_index; must quote the narration word for word (see below).
duration_secondsNoNew scene length in seconds (2-15 per clip; see below).
remove_end_frameNoDrop the scene's end frame.
remove_start_frameNoDrop the scene's start frame.
visual_descriptionNoNew description of what the scene shows (see below).
end_frame_image_keyNoreference_image_key of the picture the scene should END on (see below).
reference_image_keysNoreference_image_key values that REPLACE the people/products shown in this scene (see below).
start_frame_image_keyNoreference_image_key of the picture the scene should START on (see below).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / reference_image_keys
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "maxItems": 5,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "reference_image_key values that REPLACE the people/products shown in this scene (see below).",
      +  "title": "Reference Image Keys"
      +}
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=true, but the description supplies the real behavior: nothing renders until regenerate_scene with the returned regenerate_mode, hand-written prompts are never overwritten, positive_prompt is rejected unless it quotes narration verbatim, an undersized duration truncates voiceover, and reference_image_keys wholesale REPLACE the existing photo set. It also discloses the rights-confirmation requirement, which no structured field carries.

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

Conciseness4/5

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

Front-loaded with the key behavioral fact and organized as a scannable per-parameter bullet list, which is the right shape for 13 parameters. Length is justified, but the reference-image key/rights-confirmation instructions are repeated nearly verbatim under two bullets, and the frequent "see below" back-references add friction.

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

Completeness5/5

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

For a complex multi-parameter mutation with no output schema, the description still explains what the result contains (regenerate_mode) and which apply-mode follows each edit. Nothing an agent needs in order to call this correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, but descriptions are thin pointers ("see below"), and the prose genuinely adds meaning: what narration should contain, the H3 one-continuous-take style, the 'keep'/'variant'/'upload' consequences, the cost/truncation trade-off on duration_seconds, and the start-vs-end frame distinction plus remove_start_frame/remove_end_frame undo paths.

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?

"Change one scene; pass only what changes" names a specific verb, a single-scene scope, and a patch-style contract. The very next clause distinguishes it from regenerate_scene ("Nothing is re-rendered here"), so an agent can tell these two siblings apart without opening either schema.

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

Usage Guidelines5/5

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

Explicit routing throughout: use narration to fix garbled words, then escalate to set_scene_audio if the voice is still wrong; use positive_prompt only for rendered scenes that need exact control; use get_start_frame_upload_url for per-clip keyframes but get_reference_upload_page/check_reference_upload for start/end frames because chat users cannot attach files. Both the when and the when-not are stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources