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
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | The export format or codec | |
| outputPath | Yes | The absolute path where the final video file will be saved | |
| presetPath | No | Optional path to an export preset file (.epr) for specific settings | |
| quality | No | Export quality setting | |
| resolution | No | Export resolution (e.g., "1920x1080", "3840x2160") | |
| sequenceId | Yes | The ID of the sequence to export |
Implementation Reference
- src/tools/index.ts:1750-1772 (handler)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 }; } }
- src/tools/index.ts:327-338 (schema)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")') }) },
- src/tools/index.ts:504-505 (registration)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);
- src/bridge/index.ts:291-304 (helper)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); }