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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"track_index": "<track_index>"
},
"name": "delete_track"
}
}Input 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)}"