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
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| device_index | Yes | ||
| active | No |
Implementation Reference
- MCP_Server/server.py:722-735 (handler)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)}"