get_device_parameters
Retrieve device parameters from Ableton Live tracks to access and modify audio effects, instruments, and settings for music production workflows.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| device_index | Yes |
Implementation Reference
- MCP_Server/server.py:737-750 (handler)The MCP tool handler for 'get_device_parameters'. It connects to the Ableton remote script, sends the command with track_index and device_index, receives the parameters, and formats them into a readable string output.@mcp.tool() def get_device_parameters(ctx: Context, track_index: int, device_index: int) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("get_device_parameters", {"track_index": track_index, "device_index": device_index}) params = result.get('parameters', []) param_info = [] for param in params: param_info.append(f" [{param['index']}] {param['name']}: {param['value']:.2f} (range: {param['min']:.2f}-{param['max']:.2f})") return f"Device '{result.get('device_name')}' on track '{result.get('track_name')}' parameters:\n" + "\n".join(param_info) except Exception as e: logger.error(f"Error getting device parameters: {str(e)}") return f"Error getting device parameters: {str(e)}"