Access to window server

It’d be nice if the extension could inherit the permissions given to the main app by the user, in my case screen capture.

Alternatively, is there a way to send data to the extension from the app, or vice versa?

Especially image or video data.

thanks!

laurent