create_sequence
Automate the creation of new sequences in Adobe Premiere Pro by specifying name, resolution, and frame rate, streamlining video project setup for efficient editing and integration.
Instructions
Create a new sequence in Premiere Pro
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framerate | No | Frame rate (default: 23.976) | |
| height | No | Height in pixels (default: 1080) | |
| name | Yes | Name of the new sequence | |
| width | No | Width in pixels (default: 1920) |
Implementation Reference
- mcp-server.js:854-905 (handler)The core handler function for the 'create_sequence' tool. It destructures input arguments, sends a POST request to the local Premiere Pro API endpoint '/api/create-sequence' with sequence parameters (name, width, height, framerate), processes the response, and returns formatted success or error messages.async createSequence(args) { const { name, width = 1920, height = 1080, framerate = 23.976 } = args; try { const response = await fetch('http://localhost:3001/api/create-sequence', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ name, width, height, framerate }), }); 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}`, }, ], }; } return { content: [ { type: 'text', text: `✅ **Sequence Created Successfully**\n\n**Name:** ${data.sequence_name}\n**Resolution:** ${data.resolution.width}x${data.resolution.height}\n**Frame Rate:** ${data.frame_rate} fps\n**Created:** ${data.created_timestamp}`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `❌ **Failed to create sequence**\n\nError: ${error.message}`, }, ], isError: true, }; } }
- mcp-server.js:161-186 (schema)The tool schema definition including name, description, and inputSchema with properties for sequence name (required), width, height, and framerate (all with defaults). This is returned by the ListTools handler.{ name: 'create_sequence', description: 'Create a new sequence in Premiere Pro', inputSchema: { type: 'object', properties: { name: { type: 'string', description: 'Name of the new sequence', }, width: { type: 'number', description: 'Width in pixels (default: 1920)', }, height: { type: 'number', description: 'Height in pixels (default: 1080)', }, framerate: { type: 'number', description: 'Frame rate (default: 23.976)', }, }, required: ['name'], }, },
- mcp-server.js:258-259 (registration)The dispatch case in the CallToolRequestSchema handler that routes calls to the createSequence method.case 'create_sequence': return await this.createSequence(args);