Skip to main content
Glama

set_device_active

Activate or deactivate a specific device on an Ableton Live track to control audio processing and effects during music production.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
track_indexYes
device_indexYes
activeNo

Implementation Reference

  • Handler function for the 'set_device_active' MCP tool. It uses the @mcp.tool() decorator for automatic registration and forwards the command to the Ableton remote script via send_command.
    @mcp.tool() def set_device_active(ctx: Context, track_index: int, device_index: int, active: bool = True) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("set_device_active", { "track_index": track_index, "device_index": device_index, "active": active }) status = "active" if result.get('active') else "inactive" return f"Device '{result.get('device_name')}' on track '{result.get('track_name')}' is now {status}" except Exception as e: logger.error(f"Error setting device active state: {str(e)}") return f"Error setting device active state: {str(e)}"

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