Skip to main content
Glama

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
NameRequiredDescriptionDefault
sequenceIdYesThe ID of the sequence
trackIndexYesThe index of the audio track
mutedYesWhether to mute (true) or unmute (false) the track

Implementation Reference

  • 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') }) },
  • 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); }
  • 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);
  • 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') })

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