(Solved)Can Api Be Used To Add Send Tracks?

some code i wrote to get the master track

if you just need to add a track at the end couldn’t you just do:
renoise.song():insert_track_at(#renoise.song().tracks)