Skip to main content
Glama

delete_track

Remove a specific track by index from Ableton Live using the MCP server. Specify the track type as 'audio', 'midi', or 'return' for precise deletion.

Instructions

delete track by index

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
indexYes[int] index of track
typeYesthe type of track, "return", "audio", "midi"

Implementation Reference

  • The handler function that executes the delete_track tool, deleting the specified track using Ableton APIs based on track type.
    async deleteTrack({ index, type }: { index: number, type: TrackType }) { switch (type) { case TrackType.midi: case TrackType.audio: await ableton.song.deleteTrack(index) break case TrackType.return: await ableton.song.deleteReturnTrack(index) break default: throw new Error('Invalid track type') } return Result.ok() }
  • The @tool decorator that registers the deleteTrack method as the 'delete_track' tool with description and params schema.
    @tool({ name: 'delete_track', description: 'delete track by index', paramsSchema: { index: z.number().describe('[int] index of track'), type: ZodTrackType, } })
  • The Zod input schema defining parameters for the delete_track tool: index (number) and type (TrackType).
    paramsSchema: { index: z.number().describe('[int] index of track'), type: ZodTrackType, }

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/xiaolaa2/ableton-copilot-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server