start_playback_tool
Initiate playback in Ableton Live sessions using the AbletonMCP server, enabling AI-assisted music production and direct control over Active Set playback.
Instructions
Start playing the Ableton session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- MCP_Server/server.py:128-132 (handler)The MCP tool handler for 'start_playback_tool', decorated with @mcp.tool(), delegating to the start_playback helper function.@mcp.tool() def start_playback_tool(ctx: Context) -> str: """Start playing the Ableton session.""" return start_playback(ctx)
- Helper function implementing the playback start logic by sending a command via the Ableton connection.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)}"
- Remote Ableton script handler that directly calls song.start_playing() to initiate playback in Ableton Live.def start_playback(self) -> dict[str, Any]: """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