export_project
Export current Adobe Premiere Pro projects or sequences to a specified output path, with customizable settings like preset names and audio inclusion for streamlined workflow automation.
Instructions
Export the current project or sequence
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include_audio | No | Include audio in export (default: true) | |
| output_path | Yes | Output file path | |
| preset_name | No | Export preset name (default: H.264 High Quality) |
Implementation Reference
- mcp-server.js:907-968 (handler)The main handler function that executes the tool logic. It destructures arguments, sends a POST request to the local API endpoint 'http://localhost:3001/api/export-project' with export parameters, handles the response, and returns formatted success or error messages.async exportProject(args) { const { output_path, preset_name = "H.264 High Quality", include_audio = true } = args; try { const response = await fetch('http://localhost:3001/api/export-project', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ output_path, preset_name, include_audio }), }); if (!response.ok) throw new Error(`HTTP ${response.status}: ${response.statusText}`); const data = await response.json(); if (data.error) { return { content: [ { type: 'text', text: `⚠️ ${data.error}`, }, ], }; } if (data.status === 'queued') { return { content: [ { type: 'text', text: `🎬 **Export Queued Successfully**\n\n**Output Path:** ${data.output_path}\n**Preset:** ${data.preset_name}\n**Sequence:** ${data.sequence_name}\n**Queue Position:** ${data.queue_position}\n**Estimated Duration:** ${data.estimated_duration}`, }, ], }; } else { return { content: [ { type: 'text', text: `✅ **Export Started Successfully**\n\n**Output Path:** ${data.output_path}\n**Preset:** ${data.preset_name}\n**Sequence:** ${data.sequence_name}\n**Status:** ${data.status}`, }, ], }; } } catch (error) { return { content: [ { type: 'text', text: `❌ **Failed to export project**\n\nError: ${error.message}`, }, ], isError: true, }; } }
- mcp-server.js:190-207 (schema)Input schema defining parameters for the export_project tool: output_path (required string), optional preset_name (string), include_audio (boolean).inputSchema: { type: 'object', properties: { output_path: { type: 'string', description: 'Output file path', }, preset_name: { type: 'string', description: 'Export preset name (default: H.264 High Quality)', }, include_audio: { type: 'boolean', description: 'Include audio in export (default: true)', }, }, required: ['output_path'], },
- mcp-server.js:261-262 (registration)Switch case in the CallToolRequest handler that registers and routes 'export_project' calls to the exportProject method.case 'export_project': return await this.exportProject(args);
- mcp-server.js:187-208 (registration)Tool definition registered in the ListTools response, including name, description, and input schema.{ name: 'export_project', description: 'Export the current project or sequence', inputSchema: { type: 'object', properties: { output_path: { type: 'string', description: 'Output file path', }, preset_name: { type: 'string', description: 'Export preset name (default: H.264 High Quality)', }, include_audio: { type: 'boolean', description: 'Include audio in export (default: true)', }, }, required: ['output_path'], }, },