Skip to main content
Glama

add_media

Add video, image, or audio clips to a CapCut draft timeline, placing them on main, overlay, or audio tracks with position, duration, volume, speed, and effect controls.

Instructions

Добавить видео, картинку или аудио в черновик.

track:

  • "main" — главная видеодорожка: клипы идут друг за другом без пауз, в порядке добавления (или вставить в место position, считая с 0). start здесь не нужен.

  • "overlay" — видео/картинка поверх главной (картинка-в-картинке, логотип). Нужен start.

  • "audio" — музыка/озвучка. start по умолчанию 0. duration — сколько секунд клип идёт на таймлайне (по умолчанию: всё видео/аудио, картинка — 3 с). source_start — с какой секунды исходного файла начинать. volume 0..2 (0 — без звука), speed — скорость (2 = в 2 раза быстрее). scale/x/y — размер и положение: x,y от -1 до 1 (0,0 — центр; y=1 — верх). fade_in/fade_out — плавное появление/затухание звука, секунды. transition — переход к СЛЕДУЮЩЕМУ клипу (только main), intro/outro — анимация появления/исчезновения. Названия эффектов — через list_effects.

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": {
      "draft": "<draft>",
      "path": "<path>"
    },
    "name": "add_media"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNo
yNo
pathYes
draftYes
introNo
outroNo
scaleNo
speedNo
startNo
trackNomain
volumeNo
fade_inNo
opacityNo
durationNo
fade_outNo
positionNo
transitionNo
source_startNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: main-track clips are appended without gaps or inserted at position, duration defaults to full source length (3s for images), transition applies only to the NEXT clip and only on main, volume range is 0..2, and coordinates run -1..1 with y=1 at the top. Undisclosed behavior remains around path handling (local file vs URL), overwrite/error semantics, and what the call returns.

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?

Front-loaded one-line purpose, then a compact bulleted track breakdown, then a tight parameter glossary. Every line adds information an agent cannot get from the schema; there is no filler or repetition.

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 an 18-parameter mutation tool with zero annotations, no output schema and 0% schema descriptions, the definition supplies most operational context: track semantics, defaults, ordering behavior and effect lookup. It falls short of complete because opacity and path/draft handling are unaddressed, and no return-value expectation is set.

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 0% across 18 parameters, so the description must compensate, and it documents most of them: track, start, position, duration, source_start, volume, speed, scale, x/y, fade_in/fade_out, transition, intro/outro and positional semantics. Gaps remain: opacity is never mentioned, and path/draft get no format or constraint guidance.

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?

Opens with a specific verb+resource: add video, image or audio to a draft. The three media kinds and the draft target make it clearly distinguishable from siblings like add_text, add_subtitles and move_clip, which operate on other element types.

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 selection guidance for the track parameter (main = sequential/no start needed, overlay = needs start, audio = start defaults 0) and states defaults for duration. It also routes the agent to list_effects for effect names. It lacks explicit exclusions or a statement of when to prefer a sibling tool, so it stops short of a 5.

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