get_track_info
Retrieve detailed information about a specific track in Ableton Live, including its name, devices, clips, and routing, to analyze and manage your music production session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes |
Implementation Reference
- MCP_Server/server.py:263-271 (handler)The handler function decorated with @mcp.tool(), implementing the get_track_info tool. It retrieves track information by sending a command to the Ableton remote script via the established connection and returns the JSON-formatted result.@mcp.tool() def get_track_info(ctx: Context, track_index: int) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("get_track_info", {"track_index": track_index}) return json.dumps(result, indent=2) except Exception as e: logger.error(f"Error getting track info: {str(e)}") return f"Error getting track info: {str(e)}"