start_playback
Initiates playback of an Ableton Live session via the Model Context Protocol, enabling direct control for AI-assisted music production workflows.
Instructions
Start playing the Ableton session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- MCP_Server/server.py:480-489 (handler)MCP tool handler for 'start_playback' that proxies the command to the Ableton remote script via socket communication.@mcp.tool() def start_playback(ctx: Context) -> str: """Start playing the Ableton session.""" try: ableton = get_ableton_connection() result = ableton.send_command("start_playback") return "Started playback" except Exception as e: logger.error(f"Error starting playback: {str(e)}") return f"Error starting playback: {str(e)}"
- Actual implementation in Ableton remote script that calls self._song.start_playing() to start playback in Ableton Live.def _start_playback(self): """Start playing the session""" try: self._song.start_playing() result = { "playing": self._song.is_playing } return result except Exception as e: self.log_message("Error starting playback: " + str(e)) raise
- Dispatch handler in remote script that routes 'start_playback' command to the _start_playback method.elif command_type == "start_playback": result = self._start_playback()