set_track_name
Change track names in Ableton Live by specifying the track index and new name to organize your music production session.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| track_index | Yes |
Implementation Reference
- MCP_Server/server.py:283-291 (handler)The MCP tool handler for 'set_track_name'. This function is decorated with @mcp.tool() for automatic registration. It connects to the Ableton remote script via get_ableton_connection(), sends the rename command, and returns a formatted response or error.@mcp.tool() def set_track_name(ctx: Context, track_index: int, name: str) -> str: try: ableton = get_ableton_connection() result = ableton.send_command("set_track_name", {"track_index": track_index, "name": name}) return f"Renamed track to: {result.get('name', name)}" except Exception as e: logger.error(f"Error setting track name: {str(e)}") return f"Error setting track name: {str(e)}"
- MCP_Server/server.py:104-110 (helper)Within the AbletonConnection.send_command method, 'set_track_name' is classified as a modifying command, which receives extended timeout (15s) and small delays before/after sending to accommodate Ableton's processing time.is_modifying_command = command_type in [ "create_midi_track", "create_audio_track", "set_track_name", "create_clip", "add_notes_to_clip", "set_clip_name", "set_tempo", "fire_clip", "stop_clip", "set_device_parameter", "start_playback", "stop_playback", "load_instrument_or_effect", "load_browser_item" ]