Skip to main content
Glama

export_sequence

Render and export Adobe Premiere Pro sequences to video files using customizable settings for format, quality, and resolution.

Instructions

Renders and exports a sequence to a video file. This is for creating the final video.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sequenceIdYesThe ID of the sequence to export
outputPathYesThe absolute path where the final video file will be saved
presetPathNoOptional path to an export preset file (.epr) for specific settings
formatNoThe export format or codec
qualityNoExport quality setting
resolutionNoExport resolution (e.g., "1920x1080", "3840x2160")

Implementation Reference

  • Primary handler function for the 'export_sequence' tool. Determines export preset and delegates rendering to the PremiereProBridge.
    private async exportSequence(sequenceId: string, outputPath: string, presetPath?: string, format?: string, quality?: string, resolution?: string): Promise<any> { try { const defaultPreset = format === 'mp4' ? 'H.264' : 'ProRes'; const preset = presetPath || defaultPreset; await this.bridge.renderSequence(sequenceId, outputPath, preset); return { success: true, message: 'Sequence exported successfully', outputPath: outputPath, format: preset, quality: quality, resolution: resolution }; } catch (error) { return { success: false, error: `Failed to export sequence: ${error instanceof Error ? error.message : String(error)}`, sequenceId: sequenceId, outputPath: outputPath }; } }
  • Low-level helper that executes ExtendScript to render the sequence using Premiere Pro's encoder.encodeSequence.
    async renderSequence(sequenceId: string, outputPath: string, presetPath: string): Promise<void> { const script = ` // Render sequence var sequence = app.project.getSequenceByID("${sequenceId}"); var encoder = app.encoder; encoder.encodeSequence(sequence, "${outputPath}", "${presetPath}", encoder.ENCODE_ENTIRE, false); JSON.stringify({ success: true }); `; await this.executeScript(script); }
  • Zod input schema defining parameters for the export_sequence tool, including sequence ID, output path, and optional format settings.
    name: 'export_sequence', description: 'Renders and exports a sequence to a video file. This is for creating the final video.', inputSchema: z.object({ sequenceId: z.string().describe('The ID of the sequence to export'), outputPath: z.string().describe('The absolute path where the final video file will be saved'), presetPath: z.string().optional().describe('Optional path to an export preset file (.epr) for specific settings'), format: z.enum(['mp4', 'mov', 'avi', 'h264', 'prores']).optional().describe('The export format or codec'), quality: z.enum(['low', 'medium', 'high', 'maximum']).optional().describe('Export quality setting'), resolution: z.string().optional().describe('Export resolution (e.g., "1920x1080", "3840x2160")') }) },
  • Dispatch/registration in the executeTool switch statement that routes calls to the exportSequence handler.
    case 'export_sequence': return await this.exportSequence(args.sequenceId, args.outputPath, args.presetPath, args.format, args.quality, args.resolution);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hetpatel-11/Adobe_Premiere_Pro_MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server