Skip to main content
Glama

export_sequence

Render and export Adobe Premiere Pro sequences to video files using customizable settings for format, quality, and resolution.

Instructions

Renders and exports a sequence to a video file. This is for creating the final video.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sequenceIdYesThe ID of the sequence to export
outputPathYesThe absolute path where the final video file will be saved
presetPathNoOptional path to an export preset file (.epr) for specific settings
formatNoThe export format or codec
qualityNoExport quality setting
resolutionNoExport resolution (e.g., "1920x1080", "3840x2160")

Implementation Reference

  • Primary handler function for the 'export_sequence' tool. Determines export preset and delegates rendering to the PremiereProBridge.
    private async exportSequence(sequenceId: string, outputPath: string, presetPath?: string, format?: string, quality?: string, resolution?: string): Promise<any> {
      try {
        const defaultPreset = format === 'mp4' ? 'H.264' : 'ProRes';
        const preset = presetPath || defaultPreset;
        
        await this.bridge.renderSequence(sequenceId, outputPath, preset);
        return { 
          success: true, 
          message: 'Sequence exported successfully',
          outputPath: outputPath, 
          format: preset,
          quality: quality,
          resolution: resolution
        };
      } catch (error) {
        return {
          success: false,
          error: `Failed to export sequence: ${error instanceof Error ? error.message : String(error)}`,
          sequenceId: sequenceId,
          outputPath: outputPath
        };
      }
    }
  • Low-level helper that executes ExtendScript to render the sequence using Premiere Pro's encoder.encodeSequence.
    async renderSequence(sequenceId: string, outputPath: string, presetPath: string): Promise<void> {
      const script = `
        // Render sequence
        var sequence = app.project.getSequenceByID("${sequenceId}");
        var encoder = app.encoder;
        
        encoder.encodeSequence(sequence, "${outputPath}", "${presetPath}", 
          encoder.ENCODE_ENTIRE, false);
        
        JSON.stringify({ success: true });
      `;
      
      await this.executeScript(script);
    }
  • Zod input schema defining parameters for the export_sequence tool, including sequence ID, output path, and optional format settings.
      name: 'export_sequence',
      description: 'Renders and exports a sequence to a video file. This is for creating the final video.',
      inputSchema: z.object({
        sequenceId: z.string().describe('The ID of the sequence to export'),
        outputPath: z.string().describe('The absolute path where the final video file will be saved'),
        presetPath: z.string().optional().describe('Optional path to an export preset file (.epr) for specific settings'),
        format: z.enum(['mp4', 'mov', 'avi', 'h264', 'prores']).optional().describe('The export format or codec'),
        quality: z.enum(['low', 'medium', 'high', 'maximum']).optional().describe('Export quality setting'),
        resolution: z.string().optional().describe('Export resolution (e.g., "1920x1080", "3840x2160")')
      })
    },
  • Dispatch/registration in the executeTool switch statement that routes calls to the exportSequence handler.
    case 'export_sequence':
      return await this.exportSequence(args.sequenceId, args.outputPath, args.presetPath, args.format, args.quality, args.resolution);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool performs a render and export operation, implying it is a write/mutation tool that creates files, but does not disclose critical behaviors such as processing time, file overwriting risks, required permissions, or system resource usage. The description is minimal and lacks operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with two sentences that directly state the tool's function and purpose. It is front-loaded with the core action ('Renders and exports a sequence to a video file') and avoids unnecessary details. However, the second sentence ('This is for creating the final video.') is somewhat redundant and could be integrated more efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity of a video export tool with 6 parameters, no annotations, and no output schema, the description is incomplete. It lacks information on behavioral traits (e.g., processing behavior, error conditions), output details (e.g., file format specifics, success indicators), and usage context. The description does not compensate for the absence of structured metadata.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all parameters. The description adds no parameter-specific semantics beyond what the schema provides (e.g., it does not explain relationships between parameters like 'presetPath' overriding 'format' or 'quality'). Baseline score of 3 is appropriate as the schema handles parameter documentation adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'Renders and exports a sequence to a video file' with the goal of 'creating the final video.' It specifies the verb ('renders and exports'), resource ('sequence'), and output ('video file'), but does not explicitly differentiate from sibling tools like 'export_frame' (which exports a single frame rather than a full sequence).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It mentions 'This is for creating the final video,' but does not specify prerequisites (e.g., whether the sequence must be edited first), exclusions, or comparisons to sibling tools like 'export_frame' or 'save_project_as' for other output types.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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