Export a sequence to a media file
export_sequenceEncode 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
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Encode up to this sequence time, in seconds (overrides range). | |
| range | No | Part of the sequence to encode: "entire" (default), "in_to_out" (sequence In to Out points) or "work_area". | |
| start | No | Encode from this sequence time, in seconds (overrides range). | |
| exporter | No | Narrow preset_name to one exporter, by its exact name from list_exporters, e.g. "H.264", "QuickTime", "Waveform Audio", "MP3". | |
| overwrite | No | Replace an existing output file. Default false. | |
| output_path | Yes | Absolute output file path. Its extension is set to the one the preset produces (e.g. .mp4, .mov). | |
| preset_name | No | Preset 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_path | No | Absolute path of an .epr export preset (from find_export_presets). Preferred. | |
| sequence_id | No | Stable sequence id (from list_sequences). Omit to use the active sequence. | |
| sequence_name | No | Sequence name; used only when sequence_id is not given. | |
| timeout_seconds | No | How long to wait for the encode. Default 600. |