Skip to main content
Glama

remove_effect

Remove specific effects from Adobe Premiere Pro clips by specifying the clip ID and effect name, streamlining video editing workflows with precision.

Instructions

Removes an effect from a clip.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clipIdYesThe ID of the clip
effectNameYesThe name of the effect to remove

Implementation Reference

  • The main handler function for the 'remove_effect' tool. It constructs an ExtendScript that finds the specified clip, iterates through its effects, removes the matching effect by name, and returns success/error status.
    private async removeEffect(clipId: string, effectName: string): Promise<any> { const script = ` try { var clip = app.project.getClipByID("${clipId}"); if (!clip) { JSON.stringify({ success: false, error: "Clip not found" }); return; } var effects = clip.getEffects(); var removed = false; for (var i = 0; i < effects.length; i++) { if (effects[i].displayName === "${effectName}") { clip.removeEffect(effects[i]); removed = true; break; } } if (!removed) { JSON.stringify({ success: false, error: "Effect not found on clip" }); return; } JSON.stringify({ success: true, message: "Effect removed successfully", clipId: "${clipId}", effectName: "${effectName}" }); } catch (e) { JSON.stringify({ success: false, error: e.toString() }); } `; return await this.bridge.executeScript(script); }
  • Zod input schema for the 'remove_effect' tool, defining required parameters: clipId and effectName.
    name: 'remove_effect', description: 'Removes an effect from a clip.', inputSchema: z.object({ clipId: z.string().describe('The ID of the clip'), effectName: z.string().describe('The name of the effect to remove') }) },
  • Registration and dispatch of the 'remove_effect' tool in the executeTool method's switch statement, calling the handler with parsed arguments.
    case 'remove_effect': return await this.removeEffect(args.clipId, args.effectName);
  • Tool registration in the getAvailableTools() method, adding 'remove_effect' to the list of available MCP tools with description and schema.
    name: 'remove_effect', description: 'Removes an effect from a clip.', inputSchema: z.object({ clipId: z.string().describe('The ID of the clip'), effectName: z.string().describe('The name of the effect to remove') }) },

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