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
| Name | Required | Description | Default |
|---|---|---|---|
| sequenceId | Yes | The ID of the sequence to delete |
Implementation Reference
- src/tools/index.ts:458-459 (registration)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);
- src/tools/index.ts:134-140 (schema)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') }) },
- src/tools/index.ts:968-998 (handler)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); }