begs the question. how come ahk can run on windows(tm) but not wayland? my understanding is that win10/11 are pretty secure.
The portal for xdg-desktop takes care of the implementation and is the responsibility of the compositor.
It's already used by Flameshot for example.
There is several xdottool equivalent as well: https://github.com/atx/wtype https://github.com/ReimuNotMoe/ydotool
This one is specific to wlroot based compositor: https://git.sr.ht/~brocellous/wlrctl
* https://github.com/bugaevc/wl-clipboard
* https://github.com/ReimuNotMoe/ydotool
OBS / ffmpeg and etc. should get integrated with Pipewire I think for screen capture and the like? But I'm not sure how far that progressed.
The lack of a common screenshot protocol isn't related to security. The desktops just haven't been able to agree on a common protocol (yet?)
Passersby, warning, both are Xorg-only. For wayland, see https://github.com/ReimuNotMoe/ydotool but the naming is confusing, as it doesn't work exactly at the same level: ydotool is about keystrokes, not window management.
There's no xdotool support
Have you looked at ydotool?https://github.com/ReimuNotMoe/ydotool
Also, do you know about the "i3 Migration guide"?