get_track_info_tool
Retrieve detailed track information from Ableton Live using the track index for AI-assisted music production and direct control of Live features.
Instructions
Get detailed information about a specific track in Ableton.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes |
Implementation Reference
- MCP_Server/server.py:69-72 (handler)MCP tool handler and registration for get_track_info_tool. Decorated with @mcp.tool() and delegates to the get_track_info helper function.@mcp.tool() def get_track_info_tool(ctx: Context, track_index: int) -> str: """Get detailed information about a specific track in Ableton.""" return get_track_info(ctx, track_index)
- Core helper function implementing the track info retrieval by sending a command to the Ableton remote script via the connection and returning formatted JSON response.def get_track_info(ctx: Context, track_index: int) -> str: """ Get detailed information about a specific track in Ableton. Parameters: - track_index: The index of the track to get information about """ 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 from Ableton: {str(e)}") return f"Error getting track info: {str(e)}"