Skip to main content
Glama

move_clip

Reposition video clips on the timeline by specifying new time positions and track indexes in Adobe Premiere Pro.

Instructions

Moves a clip to a different position on the timeline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipIdYesThe ID of the clip to move
newTimeYesThe new time position in seconds
newTrackIndexNoThe new track index (if moving to different track)

Implementation Reference

  • The main handler function for the 'move_clip' tool. It constructs and executes an ExtendScript via the PremiereProBridge to move the specified clip to a new time position on the timeline, optionally changing its track.
    private async moveClip(clipId: string, newTime: number, newTrackIndex?: number): Promise<any> {
      const script = `
        try {
          var clip = app.project.getClipByID("${clipId}");
          if (!clip) {
            JSON.stringify({
              success: false,
              error: "Clip not found"
            });
            return;
          }
          
          var oldTime = clip.start.seconds;
          var oldTrack = clip.getTrack();
          var oldTrackIndex = oldTrack.index;
          
          clip.start = new Time("${newTime}s");
          
          ${newTrackIndex !== undefined ? `
          var newTrack = app.project.activeSequence.videoTracks[${newTrackIndex}];
          if (newTrack) {
            oldTrack.removeClip(clip, false);
            newTrack.insertClip(clip, new Time("${newTime}s"));
          }
          ` : ''}
          
          JSON.stringify({
            success: true,
            message: "Clip moved successfully",
            clipId: "${clipId}",
            oldTime: oldTime,
            newTime: ${newTime},
            oldTrackIndex: oldTrackIndex,
            newTrackIndex: ${newTrackIndex !== undefined ? newTrackIndex : 'unchanged'}
          });
        } catch (e) {
          JSON.stringify({
            success: false,
            error: e.toString()
          });
        }
      `;
      
      return await this.bridge.executeScript(script);
    }
  • The input schema and metadata for the 'move_clip' tool, defining parameters and descriptions used for validation and tool discovery.
      name: 'move_clip',
      description: 'Moves a clip to a different position on the timeline.',
      inputSchema: z.object({
        clipId: z.string().describe('The ID of the clip to move'),
        newTime: z.number().describe('The new time position in seconds'),
        newTrackIndex: z.number().optional().describe('The new track index (if moving to different track)')
      })
    },
  • The dispatch registration in the executeTool switch statement that maps the tool name 'move_clip' to its handler method.
    case 'move_clip':
      return await this.moveClip(args.clipId, args.newTime, args.newTrackIndex);
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 ('moves') which implies mutation, but doesn't cover critical aspects like whether this requires specific permissions, if changes are reversible, what happens to adjacent clips, or error conditions (e.g., invalid clipId). For a mutation tool with zero annotation coverage, this leaves significant gaps in understanding the tool's behavior.

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 that states the core functionality without any wasted words. It's front-loaded with the main action and resource. Every word earns its place in communicating the tool's purpose.

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

Completeness3/5

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

For a mutation tool with 3 parameters, 100% schema coverage, but no annotations or output schema, the description is minimally adequate. It states what the tool does but lacks behavioral context, error handling, or result information. The agent understands the basic operation but must make assumptions about implementation details and consequences.

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 no additional parameter semantics beyond what's in the schema (clipId, newTime, newTrackIndex). It doesn't explain units for newTime (seconds are in schema), track numbering conventions, or optionality of newTrackIndex. Baseline 3 is appropriate when 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 ('moves') and resource ('a clip') with specific context ('to a different position on the timeline'). It distinguishes from obvious siblings like 'trim_clip' or 'split_clip' by focusing on repositioning rather than editing content. However, it doesn't explicitly differentiate from all timeline manipulation tools like 'add_to_timeline' or 'remove_from_timeline'.

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. There's no mention of prerequisites (e.g., needing an open project or existing clip), nor does it specify when to choose this over similar tools like 'trim_clip' for timeline adjustments. The agent must infer usage purely from the tool name and description.

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