Skip to main content
Glama

export_sequence

Renders and exports a sequence to a video file in Adobe Premiere Pro. Specify output path, format, quality, and resolution for tailored results.

Instructions

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

Input Schema

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

Implementation Reference

  • Primary handler for the 'export_sequence' MCP 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 }; } }
  • Zod input schema definition and tool metadata registration in getAvailableTools() array.
    { 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 of the tool handler in the executeTool switch statement.
    case 'export_sequence': return await this.exportSequence(args.sequenceId, args.outputPath, args.presetPath, args.format, args.quality, args.resolution);
  • Supporting bridge method that executes ExtendScript to invoke Premiere Pro's encoder.encodeSequence for exporting the sequence.
    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); }

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