Skip to main content
Glama

delete_track

Remove a track from a REAPER project by specifying its index. This action is permanent and cannot be undone through REAPER's standard undo system.

Instructions

Delete a track by 0-based index. This is permanent and undoable via REAPER's undo system.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_indexYes

Implementation Reference

  • The MCP tool definition and handler for delete_track.
    @mcp.tool()
    def delete_track(track_index: int) -> dict[str, Any]:
        """Delete a track by 0-based index. This is permanent and undoable via REAPER's undo system."""
        try:
            return _wrap(adapter.delete_track(track_index=track_index))
        except Exception as exc:
            return _err(exc)
  • The adapter method that forwards the call to the underlying bridge client.
    def delete_track(self, track_index: int) -> dict[str, Any]:
        return self._client.call("delete_track", track_index=track_index)

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/danielkinahan/ReaMCP'

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