Skip to main content
Glama

Update clips (batch)

update_clips
Destructive

Update one or more clips in a single call — background, transition, duration, title, visibility, position, and (video clips) the footage transform via video_styling. Always batch.

Each entry: { clip_index, duration?, title?, background_color? | background?, transition?, hidden?, position?, voiceover_volume?, video_styling? }

  • duration: sets the clip's length WITHOUT rescaling anything (unlike generating speech, which rescales the whole clip). A shrink clamps every end_time past the new end to it; a grow carries an element that ended at the old end to the new end and leaves the rest where they were. A placed trim animation keeps its animation_duration: it holds its last frame on a grow and is cut on a shrink; only a stretch animation placed to fit keeps filling its window at the same speed. Keyframes keep their timestamps. Each clip's result lists what moved as extended / clamped.

  • voiceover_volume: 0-100. This is how you make a clip SILENT — set 0 to mute the narration while keeping the text and its word timings. get_clip and get_project report the current value, so read it before muting to restore it later. There is no "delete voiceover" tool; muting is the supported way.

  • background_color: hex (keeps the existing pattern/image, changes color). background: full object from find(type='backgrounds') — replaces the whole background.

  • transition: { type, duration, direction?, color?, bezier? }, or null to remove. Set on the OUTGOING clip — the transition plays at the END of clip_index, into the next clip. Types: circleWipe, rainbowWipe, cornerWipe, stack, colorWipe, dissolve, pushPull, fadeToColor, flip. Directions: rainbowWipe/cornerWipe take topLeft|topRight|bottomLeft|bottomRight; colorWipe left|right; stack/pushPull left|right|top|bottom; flip (3D card turn) horizontalLeft|horizontalCenter|horizontalRight|verticalTop|verticalCenter|verticalBottom. bezier [x1,y1,x2,y2] eases flip.

  • position: move the clip to a new zero-based index. Moves apply FIRST (in array order), then property patches — keep reorders in a separate call from property edits so indices stay predictable.

  • video_styling (VIDEO CLIPS ONLY — ignored on slide clips): reposition/resize the clip's recording on the canvas, e.g. into a designed window slot. { position?: [cx, cy], size?: [w, h] } as canvas fractions 0–1 ([1,1] = full-bleed, position is the footage CENTER), plus crop? and border?. Fields merge onto the clip's existing video_styling.

  • video_styling.border frames the recording, as the editor's Stroke panel does: omnibox (browser toolbar with a URL bar over the footage — e.g. { type: "omnibox", color: "#0052CC" }), browser (window chrome), notch (phone notch), solid (plain stroke; takes stroke), glass, animated, or none. Width and color default per type like the editor; a bare { color } restyles the current border.

Concurrency: parallel-safe per clip — all property updates land in ONE save. Safe to fan out across DIFFERENT clips. Do NOT run concurrently with element/voiceover edits on the SAME clip, or whole-project mutations (add_clips, add_audio, update_project). When adding audio + resizing clips, run update_clips BEFORE add_audio.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
updatesYesOne entry per clip to update.
project_idYesProject ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / updates / items / properties / transition / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "color": {
      -        "description": "Hex color, honoured by fadeToColor (default #000000), colorWipe (default #073cad) and rainbowWipe (default #D43F8C).",
      -        "type": "string"
      -      },
      -      "direction": {
      -        "description": "Direction, honoured only by some types: rainbowWipe and cornerWipe take topLeft/topRight/bottomLeft/bottomRight (default topRight); colorWipe takes left or right (default right); stack and pushPull take left/right/top/bottom (default right). Ignored by dissolve, circleWipe and fadeToColor.",
      -        "type": "string"
      -      },
      -      "duration": {
      -        "description": "Transition length in seconds.",
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "type": {
      -        "description": "Transition style. NOTE: a clip's transition plays at the END of that clip, into the next one — to put a transition between clips 2 and 3, set it on clip 2.",
      -        "enum": [
      -          "circleWipe",
      -          "rainbowWipe",
      -          "cornerWipe",
      -          "stack",
      -          "colorWipe",
      -          "dissolve",
      -          "pushPull",
      -          "fadeToColor"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "duration"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "bezier": {
      +        "description": "Custom easing of the transition, CSS cubic-bezier [x1, y1, x2, y2], e.g. [0.34, 1.56, 0.64, 1] for a slight bounce. Honoured by flip; omit for its default ease-in-out.",
      +        "items": {
      +          "type": "number"
      +        },
      +        "maxItems": 4,
      +        "minItems": 4,
      +        "type": "array"
      +      },
      +      "color": {
      +        "description": "Hex color, honoured by fadeToColor (default #000000), colorWipe (default #073cad), rainbowWipe (default #D43F8C) and flip (the backdrop behind the turning card, default #000000).",
      +        "type": "string"
      +      },
      +      "direction": {
      +        "description": "Direction, honoured only by some types: rainbowWipe and cornerWipe take topLeft/topRight/bottomLeft/bottomRight (default topRight); colorWipe takes left or right (default right); stack and pushPull take left/right/top/bottom (default right); flip takes horizontalLeft/horizontalCenter/horizontalRight/verticalTop/verticalCenter/verticalBottom (default horizontalCenter) — the axis it turns about (horizontal = left↔right, vertical = up↔down) and the line it turns on (an edge, or the middle for a card flip). Ignored by dissolve, circleWipe and fadeToColor.",
      +        "type": "string"
      +      },
      +      "duration": {
      +        "description": "Transition length in seconds.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "description": "Transition style. NOTE: a clip's transition plays at the END of that clip, into the next one — to put a transition between clips 2 and 3, set it on clip 2.",
      +        "enum": [
      +          "circleWipe",
      +          "rainbowWipe",
      +          "cornerWipe",
      +          "stack",
      +          "colorWipe",
      +          "dissolve",
      +          "pushPull",
      +          "fadeToColor",
      +          "flip"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "duration"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed2 schema fields changed
    • changedInput schema / properties / updates / items / properties / video_styling / properties / border / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "borderWidth": {
      -        "description": "Border width in pixels.",
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "border_width": {
      -        "description": "Snake-case alias for borderWidth. Border width in pixels.",
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "color": {
      -        "description": "Border color hex (defaults to brand color).",
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "Border style. 'none' = no border.",
      -        "enum": [
      -          "none",
      -          "solid",
      -          "glass",
      -          "animated",
      -          "browser"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "borderWidth": {
      +        "description": "Border width in pixels.",
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "border_width": {
      +        "description": "Snake-case alias for borderWidth. Border width in pixels.",
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "color": {
      +        "description": "Frame color hex. Defaults per type: #212528 for omnibox/browser, #000000 for notch, #FFFFFF for glass, brand blue otherwise.",
      +        "type": "string"
      +      },
      +      "stroke": {
      +        "description": "SOLID borders only: stroke alignment and dashed style.",
      +        "properties": {
      +          "align": {
      +            "enum": [
      +              "inside",
      +              "center",
      +              "outside"
      +            ],
      +            "type": "string"
      +          },
      +          "dash": {
      +            "description": "Dash length px (dashed).",
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "gap": {
      +            "description": "Gap length px (dashed).",
      +            "minimum": 0,
      +            "type": "number"
      +          },
      +          "style": {
      +            "enum": [
      +              "solid",
      +              "dashed"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": {
      +        "description": "Frame style. omnibox = browser toolbar with URL bar over the footage; browser = window chrome; notch = phone notch; solid = plain stroke; glass; animated; none = remove. Omit to restyle the current border.",
      +        "enum": [
      +          "none",
      +          "solid",
      +          "browser",
      +          "omnibox",
      +          "notch",
      +          "glass",
      +          "animated"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / updates / items / properties / video_styling / properties / border / description
      Previous value: -"Frame around the footage ({type, color?, borderWidth?} — border_width also accepted), or null to clear."New value: +"Frame around the footage ({type?, color?, borderWidth?, stroke?} — border_width also accepted), or null to clear."
  3. Changed4 schema fields changed
    • removedInput schema / properties / context
      Removed value: -{
      -  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      -  "type": "string"
      -}
    • removedInput schema / properties / conversation_id
      Removed value: -{
      -  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      -  "type": "string"
      -}
    • removedInput schema / properties / llm_model
      Removed value: -{
      -  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "updates",
      -  "context",
      -  "llm_model"
      -]New value: +[
      +  "project_id",
      +  "updates"
      +]
  4. Changed4 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Explain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as \"a user\", \"the customer\", or \"an account\". Example: \"Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution.\"",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Echo the conversation_id from the server's previous response. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it.",
      +  "type": "string"
      +}
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. \"claude-opus-4-8\", \"gpt-5.2\"). Used for analytics only. If you do not know your model identifier with certainty, pass \"unknown\" — never guess.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "updates"
      -]New value: +[
      +  "project_id",
      +  "updates",
      +  "context",
      +  "llm_model"
      +]
  5. Changed11 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / updates / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / updates / items / properties / background / propertyNames
      Added value: +{
      +  "type": "string"
      +}
    • addedInput schema / properties / updates / items / properties / clip_index / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / updates / items / properties / hidden / anyOf
      Previous value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "enum": [
      -      "true",
      -      "false",
      -      "1",
      -      "0",
      -      "yes",
      -      "no"
      -    ],
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "type": "boolean"
      +  },
      +  {
      +    "enum": [
      +      "0",
      +      "1",
      +      "true",
      +      "false",
      +      "yes",
      +      "no"
      +    ],
      +    "type": "string"
      +  }
      +]
    • addedInput schema / properties / updates / items / properties / position / maximum
      Added value: +9007199254740991
    • changedInput schema / properties / updates / items / properties / transition / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "color": {
      -        "description": "Hex color, honoured by fadeToColor (default #000000), colorWipe (default #073cad) and rainbowWipe (default #D43F8C).",
      -        "type": "string"
      -      },
      -      "direction": {
      -        "description": "Direction, honoured only by some types: rainbowWipe and cornerWipe take topLeft/topRight/bottomLeft/bottomRight (default topRight); colorWipe takes left or right (default right); stack and pushPull take left/right/top/bottom (default right). Ignored by dissolve, circleWipe and fadeToColor.",
      -        "type": "string"
      -      },
      -      "duration": {
      -        "description": "Transition length in seconds.",
      -        "exclusiveMinimum": 0,
      -        "type": "number"
      -      },
      -      "type": {
      -        "description": "Transition style. NOTE: a clip's transition plays at the END of that clip, into the next one — to put a transition between clips 2 and 3, set it on clip 2.",
      -        "enum": [
      -          "circleWipe",
      -          "rainbowWipe",
      -          "cornerWipe",
      -          "stack",
      -          "colorWipe",
      -          "dissolve",
      -          "pushPull",
      -          "fadeToColor"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "duration"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "color": {
      +        "description": "Hex color, honoured by fadeToColor (default #000000), colorWipe (default #073cad) and rainbowWipe (default #D43F8C).",
      +        "type": "string"
      +      },
      +      "direction": {
      +        "description": "Direction, honoured only by some types: rainbowWipe and cornerWipe take topLeft/topRight/bottomLeft/bottomRight (default topRight); colorWipe takes left or right (default right); stack and pushPull take left/right/top/bottom (default right). Ignored by dissolve, circleWipe and fadeToColor.",
      +        "type": "string"
      +      },
      +      "duration": {
      +        "description": "Transition length in seconds.",
      +        "exclusiveMinimum": 0,
      +        "type": "number"
      +      },
      +      "type": {
      +        "description": "Transition style. NOTE: a clip's transition plays at the END of that clip, into the next one — to put a transition between clips 2 and 3, set it on clip 2.",
      +        "enum": [
      +          "circleWipe",
      +          "rainbowWipe",
      +          "cornerWipe",
      +          "stack",
      +          "colorWipe",
      +          "dissolve",
      +          "pushPull",
      +          "fadeToColor"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "duration"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / updates / items / properties / video_styling / additionalProperties
      Removed value: -false
    • changedInput schema / properties / updates / items / properties / video_styling / properties / border / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "borderWidth": {
      -        "description": "Border width in pixels.",
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "border_width": {
      -        "description": "Snake-case alias for borderWidth. Border width in pixels.",
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "color": {
      -        "description": "Border color hex (defaults to brand color).",
      -        "type": "string"
      -      },
      -      "type": {
      -        "description": "Border style. 'none' = no border.",
      -        "enum": [
      -          "none",
      -          "solid",
      -          "glass",
      -          "animated",
      -          "browser"
      -        ],
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "borderWidth": {
      +        "description": "Border width in pixels.",
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "border_width": {
      +        "description": "Snake-case alias for borderWidth. Border width in pixels.",
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "color": {
      +        "description": "Border color hex (defaults to brand color).",
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Border style. 'none' = no border.",
      +        "enum": [
      +          "none",
      +          "solid",
      +          "glass",
      +          "animated",
      +          "browser"
      +        ],
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / updates / items / properties / video_styling / properties / crop / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "position": {
      -        "description": "[left, top] as fractions of natural size (0–1).",
      -        "items": {
      -          "type": "number"
      -        },
      -        "maxItems": 2,
      -        "minItems": 2,
      -        "type": "array"
      -      },
      -      "size": {
      -        "description": "[width, height] as fractions of natural size (0–1).",
      -        "items": {
      -          "type": "number"
      -        },
      -        "maxItems": 2,
      -        "minItems": 2,
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "position",
      -      "size"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "position": {
      +        "description": "[left, top] as fractions of natural size (0–1).",
      +        "items": {
      +          "type": "number"
      +        },
      +        "maxItems": 2,
      +        "minItems": 2,
      +        "type": "array"
      +      },
      +      "size": {
      +        "description": "[width, height] as fractions of natural size (0–1).",
      +        "items": {
      +          "type": "number"
      +        },
      +        "maxItems": 2,
      +        "minItems": 2,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "position",
      +      "size"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  6. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations declare this a destructive, non-read-only write; the description goes well beyond that by disclosing exactly what changes: duration shrinks clamp every end_time past the new end while grows carry a terminal element forward, trims hold their last frame, and mutes preserve text and word timings so they can be restored. Concurrency and ordering caveats (moves apply first, before property patches) are extra context the annotations cannot convey.

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?

Long, but front-loaded with the one-line purpose followed by per-field bullets, and nearly every sentence carries non-obvious semantics rather than restating the schema. Slightly overgrown in the transition-direction and border-type enumerations, which could be trimmed, but nothing is filler.

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 batch mutation with no output schema, the description covers return shape ('each clip's result lists what moved as extended / clamped'), ordering, concurrency, and per-field behavior. Nothing an agent needs to invoke it safely is missing.

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

Parameters5/5

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

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema lacks: duration's non-rescaling semantics, background_color preserving pattern/image vs background replacing the whole object, voiceover_volume=0 as the only supported way to mute, transition set on the OUTGOING clip, and video_styling fields merging onto existing styling (ignored on slide clips). This is well above the schema baseline.

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?

States a specific verb and resource plus scope: 'Update one or more clips in a single call,' then enumerates the exact fields it can change (background, transition, duration, title, visibility, position, video_styling). This distinguishes it from add_clips, remove_clip, split_clip, and duplicate_clip without the agent needing to open any 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 rules: 'Always batch,' keep reorders in a separate call from property edits, run update_clips BEFORE add_audio when combining audio and resizing, and do NOT run concurrently with element/voiceover edits on the same clip or whole-project mutations. Names specific sibling tools (add_clips, add_audio, update_project) as the incompatible alternatives.

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.