Skip to main content
Glama

create_sequence

Create a new editing timeline in Adobe Premiere Pro with custom name, resolution, frame rate, and audio settings for video projects.

Instructions

Creates a new sequence in the project. A sequence is a timeline where you edit clips.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name for the new sequence
presetPathNoOptional path to a sequence preset file for custom settings
widthNoSequence width in pixels
heightNoSequence height in pixels
frameRateNoFrame rate (e.g., 24, 25, 30, 60)
sampleRateNoAudio sample rate (e.g., 48000)

Implementation Reference

  • Defines the input schema, description, and name registration for the 'create_sequence' tool in getAvailableTools().
    {
      name: 'create_sequence',
      description: 'Creates a new sequence in the project. A sequence is a timeline where you edit clips.',
      inputSchema: z.object({
        name: z.string().describe('The name for the new sequence'),
        presetPath: z.string().optional().describe('Optional path to a sequence preset file for custom settings'),
        width: z.number().optional().describe('Sequence width in pixels'),
        height: z.number().optional().describe('Sequence height in pixels'),
        frameRate: z.number().optional().describe('Frame rate (e.g., 24, 25, 30, 60)'),
        sampleRate: z.number().optional().describe('Audio sample rate (e.g., 48000)')
      })
    },
  • Dispatches execution of the 'create_sequence' tool in the executeTool switch statement by calling the handler.
    case 'create_sequence':
      return await this.createSequence(args.name, args.presetPath, args.width, args.height, args.frameRate, args.sampleRate);
  • Primary handler function for 'create_sequence' tool. Validates input via schema (earlier), calls bridge.createSequence, and formats success/error response.
    private async createSequence(name: string, presetPath?: string, _width?: number, _height?: number, _frameRate?: number, _sampleRate?: number): Promise<any> {
      try {
        const result = await this.bridge.createSequence(name, presetPath);
        return {
          success: true,
          message: `Sequence "${name}" created successfully`,
          sequenceName: name,
          ...result
        };
      } catch (error) {
        return {
          success: false,
          error: `Failed to create sequence: ${error instanceof Error ? error.message : String(error)}`,
          sequenceName: name
        };
      }
    }
  • Bridge helper that generates and executes ExtendScript to call Premiere Pro API app.project.createNewSequence(name, presetPath), returning sequence info.
    async createSequence(name: string, presetPath?: string): Promise<PremiereProSequence> {
      const script = `
        // Create new sequence
        var sequence = app.project.createNewSequence("${name}", "${presetPath || ''}");
        
        // Return sequence info
        JSON.stringify({
          id: sequence.sequenceID,
          name: sequence.name,
          duration: sequence.end - sequence.zeroPoint,
          frameRate: sequence.framerate,
          videoTracks: [],
          audioTracks: []
        });
      `;
      
      return await this.executeScript(script);
    }

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