Skip to main content
Glama

export_frame

Export a single frame from a Premiere Pro sequence as an image file by specifying time and output format.

Instructions

Exports a single frame from a sequence as an image file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sequenceIdYesThe ID of the sequence
timeYesThe time in seconds to export the frame from
outputPathYesThe absolute path where the image file will be saved
formatNoThe image format

Implementation Reference

  • The handler function for the 'export_frame' tool. It constructs and executes an ExtendScript via the PremiereProBridge to export a single frame from the specified sequence at the given time to the output path in the chosen format.
    private async exportFrame(sequenceId: string, time: number, outputPath: string, format = 'png'): Promise<any> {
      const script = `
        try {
          var sequence = app.project.getSequenceByID("${sequenceId}");
          if (!sequence) {
            JSON.stringify({
              success: false,
              error: "Sequence not found"
            });
            return;
          }
          
          sequence.exportFrame(new Time("${time}s"), "${outputPath}", "${format}");
          
          JSON.stringify({
            success: true,
            message: "Frame exported successfully",
            sequenceId: "${sequenceId}",
            time: ${time},
            outputPath: "${outputPath}",
            format: "${format}"
          });
        } catch (e) {
          JSON.stringify({
            success: false,
            error: e.toString()
          });
        }
      `;
      
      return await this.bridge.executeScript(script);
    }
  • The input schema definition for the 'export_frame' tool, including parameters for sequence ID, time, output path, and optional format.
      name: 'export_frame',
      description: 'Exports a single frame from a sequence as an image file.',
      inputSchema: z.object({
        sequenceId: z.string().describe('The ID of the sequence'),
        time: z.number().describe('The time in seconds to export the frame from'),
        outputPath: z.string().describe('The absolute path where the image file will be saved'),
        format: z.enum(['png', 'jpg', 'tiff']).optional().describe('The image format')
      })
    },
  • The dispatch/registration point in the executeTool method's switch statement that routes calls to the exportFrame handler.
    return await this.exportFrame(args.sequenceId, args.time, args.outputPath, args.format);
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It states the action ('Exports') which implies a write operation that creates a file, but doesn't disclose important behavioral aspects: whether this requires specific permissions, what happens if the file already exists (overwrite? error?), file size considerations, performance characteristics, or error conditions. For a file-writing tool with zero annotation coverage, this is inadequate.

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

Conciseness5/5

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

The description is a single, well-structured sentence that efficiently conveys the core functionality without unnecessary words. It's front-loaded with the main action and resource, making it immediately comprehensible. Every word earns its place.

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?

For a tool that writes files to disk with 4 parameters and no annotations or output schema, the description is insufficient. It doesn't explain what happens on success/failure, file naming conventions, supported image formats beyond what's in the enum, or how the time parameter relates to the sequence. The agent lacks crucial context for reliable tool invocation.

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 all parameters are documented in the schema. The description adds minimal value beyond the schema - it mentions 'image file' which aligns with the format parameter's enum values, but doesn't provide additional context about parameter interactions, constraints, or best practices. The baseline of 3 is appropriate when the schema does the heavy lifting.

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 action ('Exports') and resource ('a single frame from a sequence as an image file'), making the purpose immediately understandable. It distinguishes from sibling tools like 'export_sequence' by specifying 'single frame' rather than entire sequence. However, it doesn't explicitly contrast with all possible alternatives like 'export_sequence' in the description text itself.

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 like 'export_sequence' or other media export tools. It doesn't mention prerequisites, constraints, or typical use cases. The agent must infer usage from the name and parameters alone.

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