Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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); }
  • 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({})
  • 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({})
  • Dispatch in the `executeTool` method's switch statement that routes calls to the `list_sequences` tool to the `listSequences` handler.
    return await this.listSequences();

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/hetpatel-11/Adobe_Premiere_Pro_MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server