tabId, so a command always goes to the selected browser and tab.
Firefox and Zen have documented tool exceptions. Their extension shares everyday tabs; their developer sessions use WebDriver BiDi with separate profiles and broader automation support.
Connect existing browser profiles
- Register the companion once with your MCP client.
- Load the Browspark extension in Chrome at
chrome://extensionsand Brave atbrave://extensions. You can use the same unpacked extension folder in both. For Firefox and Zen, build and load the separate Firefox package throughabout:debugging, then enable user scripts in its dashboard. See Firefox extension setup. - Open each dashboard and share the tabs you want the agent to access. Every browser profile connects to
127.0.0.1:9223, or the port you configured. - Ask the agent to call
browser_statusorbrowser_tabs. Connected extension instances have abrowserId; their tabs have uniquetabIdvalues.
Choose where a new tab opens
For a connected extension browser, use its displayedbrowserId with browser_tabs:
tabId to browser_navigate, browser_snapshot or another tab tool. A tabId already identifies the browser; it does not need an extra browserId.
The dashboard displays browser-native tab numbers, which differ from MCP tab IDs. Refresh browser_status after restarting the companion or browser instead of reusing old IDs.
browser_fetch also accepts browserId when it opens temporary tabs in an extension browser. Pass the ID from browser_status to choose which browser performs the fetch; pass context to use a developer browser instead.
Run developer browsers side by side
Ask your agent to launch the browsers you need, each in a named context. Active context names must be unique across browsers. For example, launch Brave with:browser_session calls. Use "chrome" or "firefox" for those browsers. The existing "chromium" choice remains supported and is the default for a new context.
Use context to open a new tab in a developer browser:
browser_session with action: "delete" removes a stopped profile. See developer browser profiles and options.
Sharing and tool settings
Each extension profile owns its shared tabs, overlay setting and Stop controls. A tool call targeting an extension browser or tab uses that browser’s tool switches, including page tools that resolve to the agent’s own or only usable tab. Calls spanning browsers and calls in developer sessions use the combined disabled list from connected dashboards. Developer launches use the most restrictive connected dashboard setting: Never, then Only when needed, then Always. See Tool policy for details.Select an executable
SetbrowserPath on browser_session launch when a browser is installed outside the usual locations. Keep browser set to the matching browser so the companion uses the correct protocol and profile.
The environment variables BROWSPARK_CHROME, BROWSPARK_BRAVE, BROWSPARK_FIREFOX and BROWSPARK_ZEN select the corresponding executable. Existing chromePath and firefoxPath launch options remain supported. See CLI and environment.