list_sequences
Retrieve all sequences from your current Premiere Pro project with IDs, names, and basic properties to manage video editing workflows.
Instructions
Lists all sequences in the current Premiere Pro project with their IDs, names, and basic properties.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.ts:592-625 (handler)The handler function `listSequences` that executes an ExtendScript code to retrieve and return a list of all sequences in the Premiere Pro project, including their IDs, names, durations, dimensions, frame rates, and track counts.private async listSequences(): Promise<any> { const script = ` try { var sequences = []; for (var i = 0; i < app.project.sequences.numSequences; i++) { var seq = app.project.sequences[i]; sequences.push({ id: seq.sequenceID, name: seq.name, duration: seq.duration.seconds, width: seq.frameBounds.width, height: seq.frameBounds.height, frameRate: seq.frameRate, videoTrackCount: seq.videoTracks.numTracks, audioTrackCount: seq.audioTracks.numTracks }); } JSON.stringify({ success: true, sequences: sequences, count: sequences.length }); } catch (e) { JSON.stringify({ success: false, error: e.toString() }); } `; return await this.bridge.executeScript(script); }
- src/tools/index.ts:38-41 (schema)The input schema definition for the `list_sequences` tool, defined as an empty Zod object since no parameters are required.{ name: 'list_sequences', description: 'Lists all sequences in the current Premiere Pro project with their IDs, names, and basic properties.', inputSchema: z.object({})
- src/tools/index.ts:38-41 (registration)Registration of the `list_sequences` tool in the `getAvailableTools()` method of the `PremiereProTools` class, including name, description, and schema.{ name: 'list_sequences', description: 'Lists all sequences in the current Premiere Pro project with their IDs, names, and basic properties.', inputSchema: z.object({})
- src/tools/index.ts:429-429 (handler)Dispatch in the `executeTool` method's switch statement that routes calls to the `list_sequences` tool to the `listSequences` handler.return await this.listSequences();