Skip to main content
Glama
Premiere Pro MCP Server

Premiere Pro MCP Server

Add Caption Graphics

add_caption_graphics

Burn captions into an existing Premiere Pro video track as MOGRT/Essential Graphics clips from a transcript or saved plan, with frame-accurate placement and per-clip verification.

Instructions

Burn captions into the timeline as MOGRT / Essential Graphics clips on an existing video track, one clip per caption (word_mode single or accumulate: one per word). Plans from a transcript or saved plan_path at the sequence's own frame rate, then removes this tool's earlier clips ('<name_prefix> 001', ... on that track; replace_existing true by default, read back before placing) and places clips in chunks of 25 (importMGT at the frame-rounded start, text written to the template's controls, duration trimmed, named, optional speaker colour through color_field, optional Motion position for safe_bottom / safe_middle / safe_top assuming the template's text is centred on the frame). Fit (rebreak and shrink) is ESTIMATED from character counts and a font size (font_size_px, else read from the first placed clip's text JSON fontSizeEditValue, else 6% of the frame short side with a warning); shrink rewrites fontSizeEditValue when capPropFontSizeEdit is true, else Motion Scale. Each chunk is read back in a separate call (name, start/end within half a frame, text values, colour): per clip verified, committed_unverified or mismatch; a failure or mismatch stops the run and reports what was placed, never a partial batch as success. Before anything is sent to Premiere the .mogrt is opened: a Premiere-built template (definition.json authorApp ppro) is refused, because Premiere does not expose its text to scripts (use an After Effects-built MOGRT), and every text_fields name and color_field must be a text or colour control of the template (the available names are listed when one is not). Captions are clamped to the sequence end (rule sequence_end in plan.sequence_end_changes). A template with fewer line fields than the plan has lines gets its captions re-broken to the field count (fit.rebreaks). Refuses when other clips on the track overlap the captions (use another track; add_track first if needed). expected_project_path is honoured: the server applies it to every CEP command automatically. Results can be committed_unverified. Text template convention: text_fields.line_fields ["Line 1", "Line 2"] (one line per field) or text_fields.text_field (lines joined with a carriage return). Per-word colour inside one text field has no Premiere equivalent; see host_limitations in the result.

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": {
      "mogrt_path": "<mogrt_path>",
      "track_index": "<track_index>",
      "text_fields": "<text_fields>"
    },
    "name": "add_caption_graphics"
  }
}

Input Schema

NameRequiredDescriptionDefault
fitNoboth (default): re-break lines, then shrink. rebreak, shrink, or none (report only). Estimated from character counts.
fixNoWith a standard: fix what breaks it (default true). false only reports violations.
sdhNoSubtitles for the deaf and hard of hearing: sound events and lyrics.
to_sNoOnly transcript words that overlap times before this (before offset). A word or cue that straddles the bound is clipped, not dropped. Use the clip out-point so captions do not land on later shots.
end_sNoWhere the sequence (or media) ends, in sequence seconds (after offset). No caption ends past it, a caption that would start at or after it is dropped, and a sound or linger extension never passes it; each is listed in changes with rule sequence_end. A transcript that states its media duration (Whisper, ElevenLabs) also clamps to that duration plus offset. create_caption_track import_plan and add_caption_graphics clamp to the sequence's own end.
from_sNoOnly transcript words that overlap this time and later (before offset). A word or cue that straddles the bound is clipped, not dropped. Use the clip in-point (transcribe_audio audible_source_range) or a long transcript captioned in several calls.
lingerNoSeconds a caption stays after its last word (up to the next caption), default 0.25.
offsetNoSeconds added to every transcript time, for example the clip's start on the sequence (captions must not start before 0).
cleanupNoTranscript clean-up before captions are made. The result's `cleanup` counts what changed.
standardNoA caption standard: netflix_adult (20 cps, 42 cpl, 2 lines, 5/6 s to 7 s, 2-frame gaps), netflix_kids (17 cps), bbc (180 wpm, 0.33 s per word, 37 cpl), dcmp (32 cpl, 40 frames to 6 s), social_9x16 (25 cpl, 3 lines). Sets the defaults for line length, lines, durations, gaps and linger (explicit fields still win) and turns on fixing: out-times extend into the gap, then short captions merge, then long ones split. The result lists every change and any violation left.
cut_timesNoShot changes in sequence seconds (not source time). Get them from detect_scene_edits / scene_edit_detection or from the sequence's edit points. Captions do not straddle a cut: an in-time moves onto the cut or at least 0.5 s before it, an out-time to 2 frames before it or at least 0.5 s after.
max_linesNoLines per caption, default 2. A caption is split when its words would need more.
max_wordsNoWords per caption at most (social chunking).
placementNotemplate (default): leave the template's position. safe_bottom, safe_middle, safe_top: set Motion Position so the estimated text box sits against that part of the safe area, assuming the template's text is centred on the frame.
plan_pathNoAbsolute path of a saved caption plan (.json written by a caption planning tool) inside approved_workspace_path (realpath-checked, at most 32 MiB). Use it instead of a transcript. Requires approved_workspace_path.
safe_areaNoSafe area for the fit estimate and placement. Default reels_9_16 for a frame taller than wide, else landscape_16_9.
word_modeNooff (default): one clip per caption. single: one clip per word, from the word's highlight time (word start minus the highlight lead) to the next word's, the last to the caption end. accumulate: one clip per word showing the caption's words up to that word, in the caption's own line breaks.
chunk_sizeNoClips placed per host call (default 25). At most 2000 clips per call; for more, caption parts with from_s / to_s and a different name_prefix for each part.
cut_sourceNonone (default): no shot-change snapping from the timeline. edit_points: read the clip start and end times of the video tracks (all of them, except the caption graphics track) and snap captions to those cuts; merged with any cut_times you pass (for example from detect_scene_edits). Ignored for a saved plan_path, whose shot-change rules are already applied.
frame_rateNoFrames per second of the sequence; every caption time is rounded to whole frames of this rate. Premiere sequences report it (or convert Sequence timebase ticks with 254016000000 ticks per second). Default 30, with a warning.
mogrt_pathYesAbsolute path of the caption .mogrt template (validated as a MOGRT archive before Premiere is contacted).
color_fieldNoDisplay name of the template's colour control, set to the speaker colour (speaker_style color) with setColorValue and read back. Without it, speaker colours are not applied (a warning says so; use speaker_style label or hyphen).
name_prefixNoClip names are '<name_prefix> 001', '<name_prefix> 002', ... Default 'Caption'. Earlier clips with exactly this name pattern on the track are the ones replaced, so captioning a long transcript in parts (from_s / to_s) needs a different name_prefix per part, for example 'Caption A', 'Caption B'.
pause_breakNoA pause between words longer than this starts a new caption, default 0.7.
single_wordNoOne word per caption (social style): a word shorter than 8 frames merges into the next, and a number with its unit or a first name with a surname stays together.
text_fieldsYesHow lines map onto the template's text controls (display names). Give exactly one of line_fields or text_field.
track_indexYes0-based video track the clips are placed on. It must exist (use add_track first). Other clips on it that overlap the captions make the call refuse.
font_size_pxNoThe template's text size in sequence pixels, for the fit estimate. Default: read from the first placed clip's text JSON (fontSizeEditValue), else 6% of the frame short side with a warning.
max_durationNoA caption is split when it would run longer than this, default 6.
min_durationNoSeconds a caption stays up at least (up to the next caption), default 1.
accessibilityNoNever use colour as the only cue: with speaker_style color, a label is added at each speaker change too. Default false.
speaker_namesNoDisplay names for speaker ids (e.g. {"speaker_0": "ANNA"}), for labels.
speaker_styleNoHow a speaker change shows: color (BBC order white, yellow, cyan, green per speaker), hyphen (two speakers in one caption, each line starting '- '), label ('NAME: ' at each change). Default none.
word_timelineNoCaller-supplied word-timed transcript for one Premiere source item. Words must be ordered by start time and bound to the transcript revision returned by get_clip_transcript_uxp. Different labeled speakers may overlap; same-speaker words may not, even when another speaker is between them.
min_gap_framesNoFrames between captions at least. Default 2 with a standard, else 0.
speaker_colorsNoColours (#RRGGBB) per speaker in order of first appearance instead of the BBC order.
idempotency_keyNoOptional client-chosen key (1-128 chars of A-Z a-z 0-9 . _ : -) for this intended edit. Pass a fresh key per edit and reuse it only when retrying that same edit, for example after a client-side timeout. A repeat with the same tool, key and arguments is not run again: while the first call is running it fails with IDEMPOTENCY_IN_PROGRESS (poll get_last_operations); after it finished it returns the original outcome marked replayed. A definite failure with nothing applied (receipt outcome not_applied) may be retried with the same key. Reusing a key with different arguments fails with IDEMPOTENCY_KEY_REUSED. Scoped to this MCP session (the stdio server process, or the HTTP server process when Streamable HTTP is stateless per request) and held in memory only (200 keys, 1 hour); it does not survive a restart or reconnect. Read-only invocations are never deduplicated.
transcript_pathNoAbsolute path of a .srt, .vtt or .json transcript inside approved_workspace_path (realpath-checked, at most 16 MiB). Requires approved_workspace_path.
transcript_textNoThe transcript itself (SRT, WebVTT, or JSON: ElevenLabs Scribe, Whisper-style segments, a plain array of {text,start,end}, or Premiere's exported transcript JSON), instead of word_timeline or transcript_path. At most 16 MiB.
char_width_ratioNoAverage glyph width as a share of the font size for the fit estimate. Default 0.55; a condensed face is nearer 0.45, a wide display face 0.65.
close_gaps_underNoSeconds: a gap shorter than this (and longer than the minimum) closes to min_gap_frames. Default the standard's (0.5 s), else off.
replace_existingNoDefault true: remove this tool's earlier clips (names matching exactly '<name_prefix> NNN') on the track first and read back that none remain; clips with another prefix are left alone. false: refuse if any exist. A second part of a long transcript needs its own name_prefix, or it deletes the first part.
transcript_formatNoFormat of transcript_text or transcript_path. Default: from the file extension, else from the content.
max_chars_per_lineNoCharacters per line, default 32 (about 20 suits 9:16). Counted, not measured: a proportional font can run wider.
expected_cep_targetNoOptional reviewed CEP sequence/clip identity and exact tick ranges. Checked before every generated command; UXP refuses this CEP-only guard.
expected_project_pathNoOptional absolute saved-project path. Every generated CEP command refuses before its body when the active project differs or is unsaved. UXP commands refuse this CEP-only guard; local-only tools do not inspect Premiere. Omit to keep existing behavior.
highlight_lead_framesNoThe highlighted word switches this many frames before the voice (reads as in sync). Default 1.
approved_workspace_pathNoAbsolute path of an existing directory the caller approved for file access. transcript_path, plan_path and output paths must be inside it.

Output Schema

NameRequiredDescriptionDefault
okYesWhether the tool completed successfully.
dataNoTool-specific result data when ok is true; on failure, diagnostic detail when the tool provides it.
toolYesThe registered MCP tool name.
errorNoFailure detail when ok is false.
receiptNoVersioned common mutation receipt; success never implies rendered verification.
idempotencyNoPresent when idempotency_key deduplicated this call: replayed is true when the original outcome was returned instead of running again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.31.0

TDQS

A4.3/5.0
Behavior5/5

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

Despite annotations, the description adds substantial behavior the annotations cannot express: it removes its own earlier '<name_prefix> NNN' clips by default, places in chunks of 25, reads each chunk back and classifies per clip as verified/committed_unverified/mismatch, stops the run on a mismatch rather than reporting a partial batch as success, validates the .mogrt archive before contacting Premiere, and refuses overlapping clips. There is mild tension with destructiveHint=false since it deletes prior clips, but that deletion is limited to artifacts this tool created (replace_existing), so it reads as scoped cleanup rather than a contradiction.

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?

The core action and the replacement/verification behavior are front-loaded, and almost every clause carries real information. However it is one enormous run-on paragraph with deeply nested parentheses, so an agent has to parse a wall of text to find prerequisites like the template validation rule or the overlap refusal.

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 a 48-parameter mutation tool with nested objects this covers the essentials: template validation, refusal conditions, sequence-end clamping, re-break behavior, verification and partial-failure semantics; return values are covered by the output schema. What is missing is naming the caption planning tool that writes plan_path and a clearer statement of prerequisites (approved_workspace_path, add_track) at the front instead of buried mid-sentence.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents all 48 parameters in detail. The description restates much of that (word_mode single/accumulate, fit variants, the font_size fallback chain, text_fields convention) rather than adding new meaning, though it does add the non-obvious interplay between name_prefix and replace_existing for multi-part captioning and the 'no per-word colour inside one text field' host limitation.

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 precise verb+resource+placement: 'Burn captions into the timeline as MOGRT / Essential Graphics clips on an existing video track, one clip per caption'. It also scopes the two input paths (a transcript or a saved plan_path) and implicitly separates itself from the caption planning / track-creation siblings it names. An agent can tell what this does without opening the schema.

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 routing advice inside the body: use a different name_prefix per transcript part, use another track (add_track first) when other clips overlap, use an After Effects-built MOGRT rather than a Premiere-built one, and read back before replacing. It never explicitly contrasts itself with the nearby alternatives (create_caption_track, add_text_overlay, add_title), so the agent must infer the choice, but the operational context is clear.

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