Skip to main content
Glama

Create a caption track from a caption item

create_caption_track

Adds a caption track to a Premiere Pro sequence from an imported caption file, placing the file's 0:00 at a chosen timeline time. Use it to attach subtitles or closed captions.

Instructions

Add a caption track to a sequence from a caption project item already in the project (an imported .srt, .scc, .mcc, .xml or .stl file), with the file's 0:00 at a time on the timeline. The track count is checked before and after, which exports the sequence to a temporary project file twice, so the call takes a few seconds. The result is read back: returns the caption item, start, format, caption_tracks (count after) and track (the new track's captions: start, end in sequence seconds, text). Fails with BAD_ARGS when the item is not a caption file. Use import_captions_file to import a file and create the track in one call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "create_caption_track"
  }
}

Input Schema

NameRequiredDescriptionDefault
startNoTimeline time the caption file's 0:00 maps to, in seconds. Default 0.
formatNoCaption track format: "subtitle" (default; plain subtitles), "cea608", "cea708" (broadcast closed captions), "teletext", "open_ebu" (EBU open subtitles), "op42", "op47".
item_idNoStable project item id (from list_project_items). Preferred.
item_nameNoItem name; the first match in the project is used.
item_pathNoPath in the Project panel, e.g. "Footage/Day 1/clip.mp4".
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only say it is a non-idempotent, non-destructive write; the description adds the costly implementation detail (sequence exported twice to a temp project file, a few seconds per call) and the specific failure mode (BAD_ARGS when the item is not a caption file). It also enumerates the return payload, which is real context an agent cannot get from the annotations.

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 action, then the cost, then the return shape, then the error/alternative — a logical order with no filler. The parenthetical file-extension list and the long return-value clause make single sentences dense, but each carries information.

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?

There is no output schema, and the description compensates by describing the returned fields (caption item, start, format, caption_tracks, track captions with start/end/text in sequence seconds). Combined with the disclosed latency and error case, an agent has everything needed to call and interpret it.

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%, so the baseline is 3; the description still adds value by naming the supported caption extensions (.srt, .scc, .mcc, .xml, .stl) and restating the start-offset meaning in context. It does not add much beyond the schema for the item/sequence identifier pairs, which the schema already ranks as preferred/fallback.

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?

Specific verb+resource ('Add a caption track to a sequence') plus the required source object ('from a caption project item already in the project') and the mapping semantics of 'start'. It clearly distinguishes itself from import_captions_file, which imports and creates in one step.

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?

States the precondition (the caption file must already be imported into the project) and names the alternative explicitly: 'Use import_captions_file to import a file and create the track in one call.' The agent knows exactly which tool to pick in each situation.

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

Deploy Server

Other Tools