set_track_name
Rename tracks in Ableton Live sessions by specifying track index and new name to organize your music production workflow.
Instructions
Set the name of a track.
Parameters:
track_index: The index of the track to rename
name: The new name for the track
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_index | Yes | ||
| name | Yes |
Implementation Reference
- The actual implementation in the Ableton Remote Script that renames the track.
def _set_track_name(self, track_index, name): """Set the name of a track""" try: if track_index < 0 or track_index >= len(self._song.tracks): raise IndexError("Track index out of range") # Set the name track = self._song.tracks[track_index] track.name = name result = { "name": track.name } return result except Exception as e: self.log_message("Error setting track name: " + str(e)) - MCP_Server/server.py:266-273 (handler)The MCP tool handler function definition.
def set_track_name(ctx: Context, track_index: int, name: str) -> str: """ Set the name of a track. Parameters: - track_index: The index of the track to rename - name: The new name for the track """