Skip to main content
Glama

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
NameRequiredDescriptionDefault
track_indexYes
nameYes

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))
  • 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
        """

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FreeRiverHouse/ableton-flow'

If you have feedback or need assistance with the MCP directory API, please join our Discord server