Inter-addon communication and "CLI" for add-ons

I am interested in the idea of add-ons being able to intercommunicate–and the user being able to intercommunicate directly with methods within the add-ons, sort of like a command line interface for add-ons (with the ability to choose methods and supply arbitrary arguments).

I’m not talking about registering as an actual command line listener, btw. (though maybe an SDK module to allow add-ons to register listeners could automatically add this for them as well!).

Another comparison might be with WebActivities… (And a safe subset might perhaps be exposed to websites if the listener were set up with such a directive.)

Is there any existing mechanism that would be suitable for this purpose?

I recall there being “Ubiquity” which as I recall may have done this or much of this. If Mozilla doesn’t want to maintain it, I’d still be interested to know in whether there could be an SDK mechanism to do call-and-response in a pseudo-standardized way.

It looks like https://developer.mozilla.org/en-US/docs/Tools/GCLI (loaded via SDK apparently as described by https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/_loader ) might be able to do some of this…

You can do inter-addon communication i posted a link to so topic from here: https://discourse.mozilla-community.org/t/synchronous-function-calls-possible-best-practises/2712/2?u=noitidart