Skip to main content
Glama

duplicate_sequence

Copy an existing Premiere Pro sequence to create a new version with a different name for editing variations or backups.

Instructions

Creates a copy of an existing sequence with a new name.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sequenceIdYesThe ID of the sequence to duplicate
newNameYesThe name for the new sequence copy

Implementation Reference

  • The handler function for 'duplicate_sequence' tool. It generates an ExtendScript that retrieves the sequence by ID, clones it using originalSeq.clone(), renames the clone, and returns the new sequence ID.
    private async duplicateSequence(sequenceId: string, newName: string): Promise<any> {
      const script = `
        try {
          var originalSeq = app.project.getSequenceByID("${sequenceId}");
          if (!originalSeq) {
            JSON.stringify({
              success: false,
              error: "Sequence not found"
            });
            return;
          }
          
          var newSeq = originalSeq.clone();
          newSeq.name = "${newName}";
          
          JSON.stringify({
            success: true,
            originalSequenceId: "${sequenceId}",
            newSequenceId: newSeq.sequenceID,
            newName: "${newName}"
          });
        } catch (e) {
          JSON.stringify({
            success: false,
            error: e.toString()
          });
        }
      `;
      
      return await this.bridge.executeScript(script);
    }
  • Defines the input schema using Zod for validating parameters: sequenceId (string) and newName (string). Part of the tool registration in getAvailableTools().
      name: 'duplicate_sequence',
      description: 'Creates a copy of an existing sequence with a new name.',
      inputSchema: z.object({
        sequenceId: z.string().describe('The ID of the sequence to duplicate'),
        newName: z.string().describe('The name for the new sequence copy')
      })
    },
  • Registers the tool in the executeTool method's switch statement, mapping the tool name to the duplicateSequence handler.
    case 'duplicate_sequence':
      return await this.duplicateSequence(args.sequenceId, args.newName);
    case 'delete_sequence':
Behavior2/5

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

With no annotations, the description carries full burden but only states the basic action. It doesn't disclose behavioral traits like whether the copy includes all settings/effects, if it's a deep or shallow copy, permission requirements, side effects on the original, or error conditions (e.g., invalid ID).

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, efficient sentence with zero waste. It's front-loaded with the core action and includes all necessary elements (verb, resource, outcome) without redundancy.

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 mutation tool with no annotations and no output schema, the description is incomplete. It lacks details on what the copy includes, success/error responses, or operational constraints, leaving significant gaps for an agent to use it correctly.

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 already documents both parameters fully. The description adds no additional meaning beyond implying 'sequenceId' identifies the source and 'newName' labels the copy, which aligns with but doesn't exceed schema information.

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 ('Creates a copy') and resource ('an existing sequence'), with the specific outcome ('with a new name'). It distinguishes from sibling tools like 'create_sequence' (new from scratch) and 'delete_sequence', but doesn't explicitly contrast with all siblings like 'list_sequences'.

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?

No guidance on when to use this tool versus alternatives is provided. It doesn't mention prerequisites (e.g., needing an existing sequence), compare to 'create_sequence' for new sequences, or specify use cases like duplicating for experimentation versus backup.

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