Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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
  • 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()
  • '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" ]

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Milesy1/MCP-Ableton-API'

If you have feedback or need assistance with the MCP directory API, please join our Discord server