delete_track
Remove a track from your Ableton Live session by specifying its index number. Use this tool to clean up your arrangement and manage your project's structure.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes |
Implementation Reference
- MCP_Server/server.py:516-523 (handler)The main handler function for the MCP 'delete_track' tool. It retrieves the Ableton connection, sends a 'delete_track' command with the provided track_index, and returns a formatted success or error message.def delete_track(ctx: Context, track_index: int) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("delete_track", {"track_index": track_index}) return f"Deleted track '{result.get('name')}' at index {result.get('index')}" except Exception as e: logger.error(f"Error deleting track: {str(e)}") return f"Error deleting track: {str(e)}"