Tracks

Create, name, fold, duplicate, and delete tracks - plus global undo/redo.

Tools on this page
  1. get_track_info
  2. set_track_name
  3. set_track_fold
  4. create_midi_track
  5. create_audio_track
  6. create_return_track
  7. delete_track
  8. delete_return_track
  9. duplicate_track
  10. undo
  11. redo

get_track_info

get_track_info(track_index: int)

Get detailed information about a specific track in Ableton.

Parameters:

  • track_index: The index of the track to get information about

set_track_name

set_track_name(track_index: int, name: str)

Set the name of a track.

Parameters:

  • track_index: The index of the track to rename
  • name: The new name for the track

set_track_fold

set_track_fold(track_index: int, folded: Union[bool, int, str])

Fold or unfold a group track (collapse/expand its contained tracks).

Parameters:

  • track_index: index of the (regular) track; must be a group track (foldable)
  • folded: true to fold (collapse), false to unfold (true/false, on/off, 1/0)

Rejected cleanly if the track is not a group track.

create_midi_track

create_midi_track(track_index: int = None, index: int = None)

Create a new MIDI track in the Ableton session.

Parameters:

  • track_index: The index to insert the track at (-1 = end of list). (index is accepted as a legacy alias.)

create_audio_track

create_audio_track(track_index: int = None, index: int = None)

Create a new audio track.

Parameters:

  • track_index: Insert position (-1 = end of list). (index is accepted as a legacy alias.)

create_return_track

create_return_track()

Create a new return track (added at the end of the return-track list).

delete_track

delete_track(track_index: int = None, index: int = None)

Delete the regular (audio/MIDI) track at the given index. Remaining tracks re-index; re-read get_session_info afterward.

Parameters:

  • track_index: The index of the track to delete. (index is accepted as a legacy alias.)

delete_return_track

delete_return_track(track_index: int = None, index: int = None)

Delete the return track at the given index. Remaining return tracks re-index; re-read get_session_info afterward.

Parameters:

  • track_index: The index of the return track to delete. (index is accepted as a legacy alias.)

duplicate_track

duplicate_track(track_index: int = None, index: int = None)

Duplicate the regular track at the given index. Live inserts the copy and selects it; the returned new_index is the copy’s position.

Parameters:

  • track_index: The index of the track to duplicate. (index is accepted as a legacy alias.)

undo

undo()

Undo the last action. WARNING: this walks Live’s GLOBAL undo stack; it can undo actions the user performed by hand, not just MCP changes. No-op (clean result) if there is nothing to undo.

redo

redo()

Redo the last undone action. Operates on Live’s global undo stack. No-op (clean result) if there is nothing to redo.


ableton-mcp-max - free for noncommercial use; commercial licensing available. Built by Ryan Robson / Robworks Software LLC. Not affiliated with or endorsed by Ableton AG.

This site uses Just the Docs, a documentation theme for Jekyll.