list_all_sequences
Retrieve all sequences in the current Adobe Premiere Pro project along with their basic details for enhanced project management and automation.
Instructions
List all sequences in the current project with basic info
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp-server.js:389-430 (handler)The handler function that executes the tool logic: fetches sequence list from HTTP API at localhost:3001/api/sequences, formats the data into a markdown list, handles errors, and returns structured content.async listAllSequences() { try { const response = await fetch('http://localhost:3001/api/sequences'); 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}`, }, ], }; } const sequenceList = data.sequences.map(seq => `• **${seq.name}** (${seq.duration}) - ${seq.resolution} @ ${seq.frame_rate}fps - ${seq.clip_count} clips ${seq.is_active ? '✅ ACTIVE' : ''}` ).join('\n'); return { content: [ { type: 'text', text: `🎬 **All Sequences (${data.total_sequences})**\n\n${sequenceList}\n\n**Active Sequence:** ${data.active_sequence}`, }, ], }; } catch (error) { return { content: [ { type: 'text', text: `❌ **Failed to list sequences**\n\nError: ${error.message}`, }, ], isError: true, }; } }
- mcp-server.js:52-58 (schema)Schema definition for the list_all_sequences tool, specifying no input parameters required.name: "list_all_sequences", description: "List all sequences in the current project with basic info", inputSchema: { type: "object", properties: {}, required: [] }
- mcp-server.js:228-229 (registration)Registration in the tool call dispatcher switch statement, routing calls to the handler method.case 'list_all_sequences': return await this.listAllSequences();