fwiw there is nothing that web extensions lack that would prevent that from working
https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Na... exists to allow web extensions to talk with programs on the computer, its up to someone to write the extension and executable for that usecase