get_track_info
Retrieve detailed information about specific tracks in your Ableton Live session to understand track properties, instruments, and arrangement details for music production.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes |
Implementation Reference
- MCP_Server/server.py:263-271 (handler)The handler function for the MCP tool 'get_track_info'. It connects to Ableton via socket, sends a 'get_track_info' command with track_index parameter, and returns the JSON-formatted result or error message.@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)}"
- MCP_Server/server.py:263-263 (registration)The @mcp.tool() decorator registers the get_track_info function as an MCP tool.@mcp.tool()