Skip to main content
Glama

Upload Editor Media

upload_editor_media

Put an image, video or audio file into your real Switch Editor project (its media and the end of its timeline). Three ways: url (an https link to the file; Switch keeps a copy), video_id (one of your finished videos from list_my_videos, attached as it is), or bytes (call with presign=true, PUT the bytes to upload_url, then call again with confirm_path). A video gets its scrub copy made right away so the project opens ready.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoAn https link to the file to bring in (no presign needed).
kindNoWhat the file is.
mimeNoThe file type, for example video/mp4.
presignNotrue on the first call: answers an upload_url to PUT the bytes to and the path to confirm.
filenameNoThe file name with its extension.
video_idNoOne of your finished videos (list_my_videos) to attach as it is.
file_sizeNoBytes; required for presign.
project_idYesThe Editor project id, from list_editor_projects.
confirm_pathNoThe path from the presign answer, on the second call after the PUT, to place the file in the project.
duration_secondsNoThe clip length in seconds, if known. A still image with none given is placed as a 5-second clip.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "An https link to the file to bring in (no presign needed).",
      +  "type": "string"
      +}
    • addedInput schema / properties / video_id
      Added value: +{
      +  "description": "One of your finished videos (list_my_videos) to attach as it is.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "kind"
      -]New value: +[
      +  "project_id"
      +]
  2. Changed7 schema fields changed
    • addedInput schema / properties / confirm_path / description
      Added value: +"The path from the presign answer, on the second call after the PUT, to place the file in the project."
    • addedInput schema / properties / duration_seconds / description
      Added value: +"The clip length in seconds, if known. A still image with none given is placed as a 5-second clip."
    • addedInput schema / properties / filename / description
      Added value: +"The file name with its extension."
    • addedInput schema / properties / kind / description
      Added value: +"What the file is."
    • addedInput schema / properties / mime / description
      Added value: +"The file type, for example video/mp4."
    • addedInput schema / properties / presign / description
      Added value: +"true on the first call: answers an upload_url to PUT the bytes to and the path to confirm."
    • addedInput schema / properties / project_id / description
      Added value: +"The Editor project id, from list_editor_projects."
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources