set_clip_loop
Change a clip's loop switch, loop brace, and start/end markers in Ableton Live while preserving any values you omit.
Instructions
Change a clip's loop and markers; anything left out stays as it is.
With looping on, playback starts at start_marker and then repeats the brace (loop_start → loop_end); e.g. keep only the first bar of a 4-bar loop with loop_start=0, loop_length=4. With looping off Live plays loop_start → loop_end once, so markers given for such a clip are written to the brace. The writes are ordered so the start never passes the end; the reply shows what Live applied and lists any value it "adjusted". Switching warping off and on again resets an audio clip's warp markers.
Parameters:
track_index: The track
clip_index: Session slot, or position in get_arrangement_clips
location: "session" (default) or "arrangement"
looping: Loop switch
loop_start, loop_end: The brace (beats; seconds for unwarped audio)
loop_length: Alternative to loop_end: loop_end = loop_start + loop_length
start_marker, end_marker: Where playback starts and ends
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"track_index": "<track_index>",
"clip_index": "<clip_index>"
},
"name": "set_clip_loop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| looping | No | ||
| location | No | session | |
| loop_end | No | ||
| clip_index | Yes | ||
| end_marker | No | ||
| loop_start | No | ||
| loop_length | No | ||
| track_index | Yes | ||
| start_marker | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |