Native messaging host that exposes Firefox tabs over TCP. Bridges the Firefox extension API with local applications.
- extension/ - Firefox extension that communicates tab data
- tabs-host/ - Rust native messaging host (TCP server on
127.0.0.1:19876)
cd tabs-host
cargo build --release.\install.ps1This generates the native messaging manifest and registers it in the Windows registry.
- Open Firefox and go to
about:debugging - Click "This Firefox" > "Load Temporary Add-on"
- Select
extension/manifest.json
Local apps connect to 127.0.0.1:19876 and send JSON commands:
{"action": "get_tabs"}{"action": "switch_tab", "tabId": 123, "windowId": 1}[
{
"id": 123,
"windowId": 1,
"title": "Example",
"url": "https://example.com",
"favIconUrl": "data:image/png;base64,...",
"windowBounds": {"left": 0, "top": 0, "width": 1920, "height": 1080}
}
].\uninstall.ps1