Could the program work with wtype?
xdotool can do both keyboard and mouse simulation. wtype only supports keyboard simulation. libinput-three-finger-drag needs mouse simulation of xdotool. So wtype can not be used. If you want to work in Wayland. Maybe ydotool works.