Skip to main content
Glama

add_to_timeline

Add media clips to specific tracks and positions in Adobe Premiere Pro sequences, controlling placement with track index, timecode, and insert mode options.

Instructions

Adds a media clip from the project panel to a sequence timeline at a specific track and time.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sequenceIdYesThe ID of the sequence (timeline) to add the clip to
projectItemIdYesThe ID of the project item (clip) to add
trackIndexYesThe index of the video or audio track (0-based)
timeYesThe time in seconds where the clip should be placed on the timeline
insertModeNoWhether to overwrite existing content or insert and shift

Implementation Reference

  • Defines the tool metadata including name, description, and Zod input schema for validating parameters: sequenceId, projectItemId, trackIndex, time, and optional insertMode.
      name: 'add_to_timeline',
      description: 'Adds a media clip from the project panel to a sequence timeline at a specific track and time.',
      inputSchema: z.object({
        sequenceId: z.string().describe('The ID of the sequence (timeline) to add the clip to'),
        projectItemId: z.string().describe('The ID of the project item (clip) to add'),
        trackIndex: z.number().describe('The index of the video or audio track (0-based)'),
        time: z.number().describe('The time in seconds where the clip should be placed on the timeline'),
        insertMode: z.enum(['overwrite', 'insert']).optional().describe('Whether to overwrite existing content or insert and shift')
      })
    },
  • Registers the tool handler in the executeTool switch statement, mapping the tool name to the addToTimeline method call.
    case 'add_to_timeline':
      return await this.addToTimeline(args.sequenceId, args.projectItemId, args.trackIndex, args.time, args.insertMode);
  • Tool handler wrapper in PremiereProTools class that calls the bridge method and formats success/error responses.
    private async addToTimeline(sequenceId: string, projectItemId: string, trackIndex: number, time: number, insertMode = 'overwrite'): Promise<any> {
      try {
        const result = await this.bridge.addToTimeline(sequenceId, projectItemId, trackIndex, time);
        return {
          success: true,
          message: `Clip added to timeline successfully`,
          sequenceId: sequenceId,
          projectItemId: projectItemId,
          trackIndex: trackIndex,
          time: time,
          insertMode: insertMode,
          ...result
        };
      } catch (error) {
        return {
          success: false,
          error: `Failed to add clip to timeline: ${error instanceof Error ? error.message : String(error)}`,
          sequenceId: sequenceId,
          projectItemId: projectItemId,
          trackIndex: trackIndex,
          time: time
        };
      }
  • Core handler in PremiereProBridge that generates and executes ExtendScript to insert the project item as a clip into the specified sequence track at the given time, returning clip details.
    async addToTimeline(sequenceId: string, projectItemId: string, trackIndex: number, time: number): Promise<PremiereProClip> {
      const script = `
        // Add item to timeline
        var sequence = app.project.getSequenceByID("${sequenceId}");
        var projectItem = app.project.getProjectItemByID("${projectItemId}");
        var track = sequence.videoTracks[${trackIndex}];
        
        var clip = track.insertClip(projectItem, ${time});
        
        // Return clip info
        JSON.stringify({
          id: clip.clipID,
          name: clip.name,
          inPoint: clip.start,
          outPoint: clip.end,
          duration: clip.duration,
          mediaPath: clip.projectItem.getMediaPath()
        });
      `;
      
      return await this.executeScript(script);
    }
Behavior2/5

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

No annotations are provided, so the description carries full burden. It implies a write operation ('adds') but doesn't disclose behavioral traits such as whether it requires specific permissions, if it's destructive (e.g., overwriting content), or how errors are handled. The mention of 'insertMode' hints at behavior, but details are lacking.

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 front-loads the core action and key details (media clip, project panel, sequence timeline, track, time). There's no wasted verbiage, making it easy to parse quickly.

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?

Given no annotations and no output schema, the description is moderately complete for a tool with 5 parameters. It covers the basic purpose but lacks details on usage context, behavioral implications, or return values. For a mutation tool, this leaves gaps in understanding full operation.

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 all parameters. The description adds minimal value beyond the schema by implying the tool's purpose, but doesn't provide additional context like parameter interactions or examples. Baseline 3 is appropriate as the schema handles most documentation.

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

Purpose5/5

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

The description clearly states the action ('adds'), the resource ('media clip from the project panel'), and the destination ('to a sequence timeline at a specific track and time'). It distinguishes from siblings like 'move_clip' or 'remove_from_timeline' by specifying addition rather than movement or deletion.

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 is provided on when to use this tool versus alternatives. For example, it doesn't mention prerequisites like needing an existing sequence or project item, or when to choose 'insertMode' options. Siblings like 'move_clip' or 'trim_clip' serve different purposes, but this isn't clarified.

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