Skip to main content
Glama

delete_sequence

Remove sequences from Adobe Premiere Pro projects to manage project structure and reduce clutter.

Instructions

Deletes a sequence from the project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sequenceIdYesThe ID of the sequence to delete

Implementation Reference

  • Registration of the delete_sequence tool in the executeTool dispatcher switch statement, calling the handler method.
    case 'delete_sequence': return await this.deleteSequence(args.sequenceId);
  • Input schema definition for the delete_sequence tool within getAvailableTools(), specifying the required sequenceId parameter.
    { name: 'delete_sequence', description: 'Deletes a sequence from the project.', inputSchema: z.object({ sequenceId: z.string().describe('The ID of the sequence to delete') }) },
  • The core handler implementation for delete_sequence, which constructs and executes an ExtendScript via the PremiereProBridge to locate and delete the sequence by its ID.
    private async deleteSequence(sequenceId: string): Promise<any> { const script = ` try { var sequence = app.project.getSequenceByID("${sequenceId}"); if (!sequence) { JSON.stringify({ success: false, error: "Sequence not found" }); return; } var sequenceName = sequence.name; app.project.deleteSequence(sequence); JSON.stringify({ success: true, message: "Sequence deleted successfully", deletedSequenceId: "${sequenceId}", deletedSequenceName: sequenceName }); } catch (e) { JSON.stringify({ success: false, error: e.toString() }); } `; return await this.bridge.executeScript(script); }

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