get-active-frame in group:%

Returns the frame with the keyboard focus or the first frame in the group.