Controlling Ableton clips

I’m trying to figure out how to record and stop (looper pedal style, i.e. the recorded part plays back on a loop) for clips in Ableton live. I can’t find any way to assign the record option to midi control.

If anyone knows the msgs to use, pls let me know. Thanks

Chheers