switchboard browser
Shows the browsers connected to Switchboard and fakes a page event.
Details #
switchboard browser status lists each connected browser (its version, profile, whether it can run user scripts), what the macros subscribe to, and the registrations the browser applies on its own. switchboard browser emit <name> [json] sends a page event as if a page had called switchboard.emit(name, data). switchboard browser call <name> [json] asks a connected extension to do something (ping, javaScript, spike.probe) and prints what it answered.
switchboard browser status
switchboard browser emit save-page '{"url":"https://example.com"}'
switchboard browser call javaScript '{"script":"document.title"}' --browser chrome
Parameters #
switchboard browser status [--json]
switchboard browser emit <name> [json]
switchboard browser call <name> [json]
The connected browsers and what they subscribe to.
Fake a page event for the macros listening.
Ask a connected extension to do something and print its answer.
Gotchas #
If the engine is not running the command exits with 69 and says how to start it.