Skip to main content
Glama

split_clip

Split a video clip at a specified time point into two separate clips using MCP Adobe Premiere Pro’s AI-powered automation for precise editing.

Instructions

Splits a clip at a specific time point, creating two separate clips.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipIdYesThe ID of the clip to split
splitTimeYesThe time in seconds where to split the clip

Implementation Reference

  • The main handler function for the split_clip tool. It constructs an ExtendScript that retrieves the clip by ID, calculates the split point relative to the clip's start time, splits the clip using the track's splitClip method, and returns the new clip ID and other details.
    private async splitClip(clipId: string, splitTime: number): Promise<any> { const script = ` try { var clip = app.project.getClipByID("${clipId}"); if (!clip) { JSON.stringify({ success: false, error: "Clip not found" }); return; } var track = clip.getTrack(); var splitPoint = new Time(clip.start.seconds + ${splitTime}); var newClip = track.splitClip(clip, splitPoint); JSON.stringify({ success: true, message: "Clip split successfully", originalClipId: "${clipId}", newClipId: newClip.nodeId, splitTime: ${splitTime}, splitPoint: splitPoint.seconds }); } catch (e) { JSON.stringify({ success: false, error: e.toString() }); } `; return await this.bridge.executeScript(script); }
  • Registration of the split_clip tool in the getAvailableTools() method, including its name, description, and Zod input schema for validation.
    name: 'split_clip', description: 'Splits a clip at a specific time point, creating two separate clips.', inputSchema: z.object({ clipId: z.string().describe('The ID of the clip to split'), splitTime: z.number().describe('The time in seconds where to split the clip') }) },
  • Dispatch/registration in the executeTool switch statement that routes calls to the splitClip handler method.
    case 'split_clip': return await this.splitClip(args.clipId, args.splitTime);
  • Zod schema for validating inputs to the split_clip tool: requires clipId (string) and splitTime (number).
    inputSchema: z.object({ clipId: z.string().describe('The ID of the clip to split'), splitTime: z.number().describe('The time in seconds where to split the clip') })

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