Skip to main content
Glama

Export a sequence to a media file

export_sequence

Encode a Premiere Pro sequence directly with an export preset—no Media Encoder or dialog—and wait until the file is complete. Select a range and receive output path, size, and stream info.

Instructions

Encode a sequence with an export preset inside Premiere Pro (no Media Encoder, no dialog) and wait until the file is complete. Pick the preset by preset_path, or by preset_name (+ exporter); default "Match Source - High bitrate" H.264. Range: entire, in_to_out, work_area, or start/end seconds (sets In/Out temporarily and restores them). Returns output_path, size_bytes and, when ffprobe is available, duration plus video/audio stream info. Premiere is busy while it encodes.

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": {
      "output_path": "<output_path>"
    },
    "name": "export_sequence"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoEncode up to this sequence time, in seconds (overrides range).
rangeNoPart of the sequence to encode: "entire" (default), "in_to_out" (sequence In to Out points) or "work_area".
startNoEncode from this sequence time, in seconds (overrides range).
exporterNoNarrow preset_name to one exporter, by its exact name from list_exporters, e.g. "H.264", "QuickTime", "Waveform Audio", "MP3".
overwriteNoReplace an existing output file. Default false.
output_pathYesAbsolute output file path. Its extension is set to the one the preset produces (e.g. .mp4, .mov).
preset_nameNoPreset name to look up when preset_path is not given, e.g. "Match Source - High bitrate". Words must all match; an exact name wins.
preset_pathNoAbsolute path of an .epr export preset (from find_export_presets). Preferred.
sequence_idNoStable sequence id (from list_sequences). Omit to use the active sequence.
sequence_nameNoSequence name; used only when sequence_id is not given.
timeout_secondsNoHow long to wait for the encode. Default 600.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare a non-read-only, non-destructive, non-idempotent operation, and the description adds substantial context beyond that: the call blocks until the file is complete, Premiere is busy during encoding, sequence In/Out points are set temporarily and then restored, and a timeout applies. It also discloses the return payload (output_path, size_bytes, ffprobe-dependent duration and stream info).

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?

Dense and front-loaded: the encode action and blocking behavior come first, followed by preset selection, range options, and return values. Slightly wasteful is the short re-enumeration of range modes and start/end semantics that the schema already covers verbatim.

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 11-parameter mutation tool with no output schema, the description covers the mechanism, the blocking/timeout model, side effects on In/Out, and the return shape. What remains unstated is failure behavior (what happens on timeout or encode error, partial file handling), which an agent would likely want before invoking a long-running export.

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 coverage is 100%, so all 11 parameters are already documented, making 3 the baseline. The description adds the default preset ('Match Source - High bitrate' H.264) and the conditional restore of In/Out, but otherwise restates the range enum and preset lookup rules already present in the schema.

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 (encode) plus resource (sequence) and execution context ('inside Premiere Pro (no Media Encoder, no dialog)'), which immediately separates it from the queue_sequence_in_media_encoder sibling. The wait-until-complete behavior is stated in the same opening sentence.

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 clear selection logic for preset_path vs preset_name (+exporter) and enumerates the range modes with their effect on In/Out points. The 'no Media Encoder, no dialog' phrasing implicitly routes the agent away from the queue/Media Encoder tools, but no sibling is named explicitly and no guidance is given on when to prefer this over export_for_platform or export_deliverables.

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