mute_track
Mute or unmute entire audio tracks in Adobe Premiere Pro sequences to control audio output during editing.
Instructions
Mutes or unmutes an entire audio track.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sequenceId | Yes | The ID of the sequence | |
| trackIndex | Yes | The index of the audio track | |
| muted | Yes | Whether to mute (true) or unmute (false) the track |
Implementation Reference
- src/tools/index.ts:250-257 (registration)Registration of the 'mute_track' tool in getAvailableTools(), including name, description, and Zod input schema.name: 'mute_track', description: 'Mutes or unmutes an entire audio track.', inputSchema: z.object({ sequenceId: z.string().describe('The ID of the sequence'), trackIndex: z.number().describe('The index of the audio track'), muted: z.boolean().describe('Whether to mute (true) or unmute (false) the track') }) },
- src/tools/index.ts:1471-1510 (handler)The main handler function for 'mute_track' tool. It constructs and executes an ExtendScript via the PremiereProBridge to mute/unmute the specified audio track in the sequence.private async muteTrack(sequenceId: string, trackIndex: number, muted: boolean): Promise<any> { const script = ` try { var sequence = app.project.getSequenceByID("${sequenceId}"); if (!sequence) { JSON.stringify({ success: false, error: "Sequence not found" }); return; } var track = sequence.audioTracks[${trackIndex}]; if (!track) { JSON.stringify({ success: false, error: "Audio track not found" }); return; } track.setMute(${muted}); JSON.stringify({ success: true, message: "Track mute status changed successfully", sequenceId: "${sequenceId}", trackIndex: ${trackIndex}, muted: ${muted} }); } catch (e) { JSON.stringify({ success: false, error: e.toString() }); } `; return await this.bridge.executeScript(script); }
- src/tools/index.ts:488-489 (registration)Dispatch/registration in the executeTool switch statement that calls the muteTrack handler.case 'mute_track': return await this.muteTrack(args.sequenceId, args.trackIndex, args.muted);
- src/tools/index.ts:252-256 (schema)Zod input schema for validating tool arguments.inputSchema: z.object({ sequenceId: z.string().describe('The ID of the sequence'), trackIndex: z.number().describe('The index of the audio track'), muted: z.boolean().describe('Whether to mute (true) or unmute (false) the track') })