Easy WebBridge
Use the bundled CLI to control browser profiles connected to the local bridge. Route every command to an explicit browserId; never broadcast commands.
Connect
- Start or check the bridge:
node scripts/easy-webbridge.mjs start
startis idempotent: it starts the local service only when unavailable. Do not expose its port beyond127.0.0.1.- Run the bundled script from this skill directory:
node scripts/easy-webbridge.mjs list
The script reads the token from ~/.easy-webbridge/bridge-token. Override with EASY_WEBBRIDGE_URL and EASY_WEBBRIDGE_TOKEN only when the user has configured a different bridge.
Select A Browser
- Match the user's requested browser name or
browserIdexactly. - If exactly one browser is online and the user did not specify one, use it.
- If multiple browsers are online and the target is ambiguous, ask which browser to use before changing page state.
- Keep the same
browserIdthroughout a task unless the user explicitly switches.
Operate Pages
Start by listing tabs or opening the requested URL:
node scripts/easy-webbridge.mjs command <browserId> list_tabs '{}'
node scripts/easy-webbridge.mjs navigate <browserId> https://example.com --new-tab
Read a semantic snapshot before interacting:
node scripts/easy-webbridge.mjs snapshot <browserId> [tabId]
Use the returned @e1, @e2 references for resilient interaction:
node scripts/easy-webbridge.mjs click <browserId> @e3 [tabId]
node scripts/easy-webbridge.mjs fill <browserId> @e4 "value" [tabId]
Take a screenshot when visual state matters:
node scripts/easy-webbridge.mjs screenshot <browserId> [tabId]
The command returns an absolute local image path. Inspect the image before claiming visual success.
Use Full-Power Commands
Use the generic command form for advanced browser operations:
node scripts/easy-webbridge.mjs command <browserId> <action> '<args-json>'
Supported actions include:
activate_tab,close_tab,navigate,find_tab,close_session,scrollevaluatewithcodeand optionalworld(MAINby default)cdpwithmethod,params, and optionaltabIduploadwith a file-input CSSselectorand absolutefilesget_cookies,set_cookie,remove_cookiedownloadwith Chrome download optionsreload_extensionto reload Easy WebBridge in the selected browser profilenetworkwithstart,stop,listanddetailsave_as_pdfto render a page to a local PDF file
For task-scoped tabs, pass session and optional groupTitle in command args. The extension groups tabs with the same session name. It operates in the existing browser profile, so the user's current login state remains available.
For full payload shapes, read references/api.md.
Guardrails
- Treat the extension as full browser access: it can read authenticated pages, cookies and downloads.
- Never print bridge tokens, cookies, passwords, session values or personal data into chat or logs.
- Require explicit user authorization before purchases, publishing, deleting data, sending messages, changing account security or other consequential actions.
- Do not bypass CAPTCHAs, access controls or platform protections.
- Re-snapshot after navigation or major DOM changes because element references may change.
- Report actual command results. Do not equate a click with a completed submission unless the resulting page confirms it.