stop_playback
Stop Ableton Live playback to pause your music session, control arrangement timing, or reset playback position for precise editing and arrangement management.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- MCP_Server/server.py:401-409 (handler)MCP tool handler for 'stop_playback': obtains Ableton connection and sends the 'stop_playback' command to the remote script.@mcp.tool() def stop_playback(ctx: Context) -> str: try: ableton = get_ableton_connection() ableton.send_command("stop_playback") return "Stopped playback" except Exception as e: logger.error(f"Error stopping playback: {str(e)}") return f"Error stopping playback: {str(e)}"
- Actual implementation in Ableton remote script: calls self._song.stop_playing() to stop Ableton playback and returns status.def _stop_playback(self): """Stop playing the session""" try: self._song.stop_playing() result = { "playing": self._song.is_playing } return result except Exception as e: self.log_message("Error stopping playback: " + str(e)) raise
- AbletonMCP_Remote_Script/__init__.py:278-280 (registration)Dispatch/registration of 'stop_playback' internal command to its handler in _process_command method.result = self._start_playback() elif command_type == "stop_playback": result = self._stop_playback()
- MCP_Server/server.py:104-110 (helper)'stop_playback' listed as a modifying command that receives special timeout/delay handling in send_command.is_modifying_command = command_type in [ "create_midi_track", "create_audio_track", "set_track_name", "create_clip", "add_notes_to_clip", "set_clip_name", "set_tempo", "fire_clip", "stop_clip", "set_device_parameter", "start_playback", "stop_playback", "load_instrument_or_effect", "load_browser_item" ]