About Cobrowser
Cobrowser is an MCP server published by trevin-lee in the Browser category: an embedded, agent-controllable browser inside VS Code / Cursor — you and your AI agent co-drive one persistent Chromium over MCP. Conduid read 43 tools from its source: bridge_activate_tab, bridge_click, bridge_close_tab, bridge_evaluate_script, bridge_fetch, bridge_fill and 37 more. No package is published for it, so it installs from a source checkout.
Conduid has no tagged release on record for it. Its topics include browser-automation, chrome-devtools-protocol, puppeteer and vscode-extension.
Install
git clone https://github.com/trevin-lee/cobrowserTools (43)
bridge_activate_tabBring a tab to the front and focus its window — use it to show the human what you are working on.bridge_clickClick an element by `uid` (from bridge_snapshot), CSS `selector`, or visible `text` — text is usually what you want, e.g. {text: 'Load more orders', exact: true}. Sees into open shadow roots. Do not click a button that pays or places an order unless the human asked you to complete it. Input here is synthetic (isTrusted: false) — no browser extension can send real clicks — and some sites ignore it: Google's and Cloudflare's consoles, among others. The result says noVisibleEffect when nothing on the page changed. When that happens, do the task in the cobrowser panel instead (new_page, then click/fill there), where input is real; the human signs in there once (fill_credentials for the password, the human for 2FA).bridge_close_tabClose a tab you opened with bridge_new_tab (openedBy: 'agent' in bridge_list_tabs). Tabs the human opened are refused unless you pass allowHumanTab: true, which you do only when they asked you to close that tab.bridge_evaluate_scriptFirefox only: run a JS function in a tab and get its JSON-serializable result back (an async function is awaited), like the panel's evaluate_script. Chrome runs no code sent to an extension, so there use bridge_query, which covers most bulk reads. For bulk reads prefer bridge_query in both browsers: to collect 50 order links, one query rather than snapshotting and clicking 50 times. Runs in the ISOLATED world by default (shares the DOM, not the page's JavaScript). Pass world:"page" only when you need the site's own globals or framework internals — that is logged. Treat it as READ-ONLY: it can technically touch the DOM, but use click/fill for changes so the human's guards apply. Every call is throttled.bridge_fetchFetch a SAME-ORIGIN URL from a tab, carrying that tab's cookies — for JSON APIs and file downloads the page itself would load. Use it when a site has an export or an API behind the login (statements, order JSON) instead of scraping rendered HTML, and when a response is not scriptable (Firefox's JSON viewer). Cross-origin is refused: navigate a tab to that origin first. Throttled, and a 429/403/CAPTCHA triggers a one-minute backoff rather than a retry loop.bridge_fillSet form values. For a <select>, pass the OPTION'S VISIBLE TEXT — it is chosen and driven with the focus/input/change/blur sequence frameworks listen for, because setting the value alone leaves React lists unrefreshed. REFUSES passwords, one-time codes, CVVs and card numbers, returning `needsUserAction`: the human types those. Pass allowCredentials only for a value the human gave you for that field; never sign in or pass MFA on your own. Values are set, not typed: a search-as-you-type field that waits for keystrokes (a picker whose results appear as you type) may not react — use the panel's fill or type_text for those, which type real keys.bridge_list_containersList the scopes available in the connected browser — Firefox containers, or Chrome tab groups plus "profile" (names only; this does NOT grant access to their tabs). Use it to tell the human what they could bind this workspace to. Before the workspace is bound, it lists what a browser connected for another workspace has; with none connected, it says how to bind.bridge_list_tabsList the tabs open in the human's OWN browser (Firefox or Chrome), limited to the container / tab group this workspace is bound to. Start here: these are real tabs with real sessions, so you can take over work already in progress instead of navigating from scratch. Returns a tabId for each, used by every other bridge_ tool, and openedBy: 'agent' for the tabs you opened — close those with bridge_close_tab when you are done with them; the rest are the human's.bridge_navigateNavigate a tab to a url, or back, forward or reload it, and wait for it to finish loading. Returns the SETTLED url/title, so redirects and failures are detectable.bridge_new_tabOpen a new tab inside the bound container / tab group, optionally at a URL. It is yours: close it with bridge_close_tab when you no longer need it, so the human's browser is not left full of your tabs. It comes to the front of the human's browser unless you pass active: false (the opposite of the panel's new_page, which takes background).bridge_queryTHE TOOL FOR BULK READS, in Chrome and Firefox: every element matching a CSS selector (open shadow roots too), with the fields you ask for. To collect 50 order links: {selector: 'a[href*="/orders/"]', fields: ['text', 'href']}, one call rather than snapshotting and clicking 50 times. Fields: text, href, src, value, checked, tag, or any attribute name (or attr:name). Returns count (all matches) and up to limit items (default 200, at most 1000). A password field's value reads as (filled).bridge_read_pageRead a tab as plain text (truncated). Cheaper than a screenshot when you only need the content.bridge_screenshotScreenshot a tab in the bound scope. Viewport only. In Chrome the tab is brought to the front first (Chrome can only capture a window's visible tab).bridge_snapshotInteractive elements in a tab, each with a `uid` for click/fill. Includes `href` for links — so twenty identical "View order detail" links can be navigated directly instead of clicked one at a time through pagination that resets. Sees into open shadow roots (sites built from web components). Lists <select> options so you can choose by visible text. Filter it: an unfiltered order-history page is 200+ mostly-unlabeled icon buttons — pass labeledOnly, textContains, role, withinSelector or limit. For bulk extraction prefer bridge_query.bridge_upload_fileAttach files from this Mac to a page in the human's own browser: a résumé to a job application, a document to a form. Target the file input, or the button or drop zone that opens the picker (by uid from bridge_snapshot, or selector): the file input that belongs to it is found. Paths are absolute (or start with ~/), one per file, no wildcards. The human confirms the files in the cobrowser app first, unless they turned that off for the workspace; either way they see every upload. Hidden files, ~/Library (apart from iCloud Drive) and cobrowser's own data are refused, and the files may add up to 20 MB. The page gets the files as if picked (its input and change events fire); a site that reads them only from a real drop or picker may not react, and then the panel's upload_file is the way.bridge_wait_forWait until any of the given texts (or a selector) appears in a tab, and/or (settle: true) until the page stops changing — no DOM change for quietMs, default 500 — instead of guessing when a single-page app has finished rendering. Use settle after a click or navigation so you read the page once it is done updating. timeout is in ms (default 15000, at most 60000); errors at the timeout.clickClick an element by uid (from take_snapshot; valid while the element exists) OR a CSS selector. A real input click (the cursor moves there, presses, releases) that frameworks (React etc.) accept as genuine — unlike element.click() from evaluate_script, which fires untrusted events sites may ignore. Check the outcome with read_page, not a fresh full snapshot. If the click opens a page dialog (alert, confirm, prompt), you are told at once what it asks: answer it with handle_dialog, or leave it to the human, who sees it too. If it starts a download, the result says where the file is saved (downloads, with started, completed or failed). A file picker is shown to the human (to attach files yourself, use upload_file). Do not click a button that pays or places an order unless the human asked you to complete it.close_pageClose a tab by pageId. Use it routinely: when a task ends, close every tab you opened for it (list_pages marks yours with openedBy: 'agent') so the human's editor is left as you found it. Tabs the human opened are refused unless you pass allowHumanTab: true, which you do only when they asked you to close that tab. A tab opened for another agent's task (its owner) is refused unless you pass that same owner. Refuses to close the last remaining tab.create_loginSign up for an account without ever seeing its password: the cobrowser app makes up a strong one (20 characters, letters, digits and symbols, unless you say otherwise), saves it in the human's vault with the username for the CURRENT site, usable in this workspace, and types it into the password field and its confirmation field (uids from take_snapshot). The human confirms the save (Touch ID or their Mac password), so this waits for them. Then submit the form; later, sign in with fill_credentials. If the site refuses the password (too long, a symbol it does not take), call it again within 30 minutes with length or symbols: false, and it makes up another for the same account. It never gives a saved account a new password: changing a password is the human's to do.evaluate_scriptEvaluate a JS function expression in your current tab (or pageId) and get JSON back, e.g. "() => document.title". THE tool for bulk reads: collecting 50 order rows or every link in a table is ONE call — `() => [...document.querySelectorAll('tr')].map(r => r.innerText)` — not a snapshot and 50 clicks. `args` are plain JSON passed to the function. Synthetic .click()/dispatchEvent from here is NOT trusted input (React etc. may ignore it) — use click/fill by uid for real interactions.fillSet the value of an input/textarea by uid (from take_snapshot) OR a CSS selector, using real keystrokes. For a <select>, pass the OPTION'S VISIBLE TEXT (or its value): it is chosen and the input/change events fired, since a dropdown cannot open in an offscreen page. Date, time and color fields take their standard value (2026-10-05, 14:30, #336699) and are set the same way. REFUSES password, one-time-code, card and security-code fields and reports them instead: the human types those, and a saved login goes in with fill_credentials, which never shows you the secret. Pass allowCredentials only for a value the human gave you for that field.fill_cardFill one of the human's saved cards (list_credentials shows them: label, brand, last four digits) into the card fields of your current tab (or pageId), including fields inside a payment provider's frames. The human confirms every fill in the cobrowser app (Touch ID or their Mac password), so this waits for them. You never see the number: it is masked in everything returned to you, and card fields read as (filled) in snapshots. Pass `card` (its label or last four digits) when several are saved; without one, the human picks. Filling is not paying: do not click the pay or place-order button unless the human asked you to complete the purchase.fill_credentialsFill the saved login for the CURRENT site into fields you choose: pass the username and/or password field uids from take_snapshot. The password never enters your context — the app types it in directly and reports what it filled. A login with no password (noPassword: it signs in with a link or a code) fills only the username; submit it, then leave the link or the code to the human. Refused unless the page is on the login's site. Pass `username` when the site has more than one saved login. If it answers "no saved login", call request_credential — the human may hold one scoped to another workspace. Do NOT submit payment or MFA steps for the human.fill_formFill multiple fields (by uid or selector) in one call (preferred over repeated fill). The same rule as fill: secret fields are left for the human (or fill_credentials) and reported, unless allowCredentials.get_activityRecent browser activity — page navigations and tab open/close/activate — each tagged source "human" when the human did it in the panel, and "agent" otherwise (what a tab does follows whoever acted on it last). Call it to catch up on anything the human did MANUALLY since your last action, so you act on the current state instead of a stale view. Pass `since` (the `latest` from a prior call) to get only newer events; seq numbers are never reused, across restarts too.get_editor_layoutThe human's editor layout: every editor group (pane), the tabs in each, and which tabs are cobrowser browser tabs. Call this BEFORE opening tabs if you are about to open several, and whenever the human mentions their layout being crowded. Browser tabs all share ONE dedicated pane; keep it that way — prefer navigating the current page or reusing an existing browser tab over opening new ones, and close browser tabs you no longer need (close_page) rather than leaving them stacked up.handle_dialogAnswer the alert, confirm or prompt a page is showing in your current tab (or pageId), as the human would: accept (OK) or not (Cancel), with text for a prompt (its default otherwise). While one is open the page is paused, and other tools on that tab say what it asks. The human sees the same dialog and may answer it first; then this says no dialog is open. Do not accept a dialog that confirms a payment or an order unless the human asked you to complete it.list_console_messagesWhat the page's console said: console.log/warn/error output, uncaught exceptions, and the browser's own resource-load errors ("Failed to load resource: … 404"). THE tool for "why isn't this site working": check it after a click or submit that did nothing. Defaults to your current tab; pass `level: "error"` for errors only, `since` (the `latest` from a prior call) for only newer lines. Each entry carries the pageUrl it was logged on.list_credentialsLogins THIS workspace may use, from the human's cobrowser vault — sites and usernames only, never passwords, plus the saved cards (label, brand, last four digits) that fill_card can fill. A login or card can carry notes: the human's Markdown for you (which account to use, how 2FA works, what a card is for). Read them before you sign in or pay. alsoOn lists other websites the same login fills on (one account, several sign-in sites). noPassword marks an account that signs in with an emailed link or a one-time code: fill_credentials fills its username, and the human finishes. Logins scoped to other workspaces are not listed and cannot be filled from here; if the site you need is missing, request_credential asks the human to grant one.list_network_requestsThe page's request log: method, URL, HTTP status (or the network error), content type and timing, for documents, XHR/fetch, scripts, images — no bodies or headers. Use it to see what a form submit or API call actually returned (a 401, a 500, a CORS block, a request that never completed — `pending` counts those). Defaults to your current tab; `failedOnly` keeps errors and 4xx/5xx; `minStatus` keeps statuses at or above it (400 for client errors); `urlContains` filters by URL; `since` (the `latest` from a prior call) returns only newer requests.list_pagesList open browser tabs. `selected` is YOUR current tab (what tools act on without a pageId); `humanViewing` is the tab the human is looking at — they are independent, and the human switching tabs does not move you. openedBy is 'agent' (you, an earlier agent turn, or a link you clicked) or 'human'; owner names the agent task a tab is for, when agents work in parallel (new_page owner). The human sees every tab as an editor tab, so keep the set small and tidy: reuse an 'agent' tab you are done with (navigate_page) before opening another, and close_page 'agent' tabs left over from finished work. Never close 'human' tabs unless asked.list_workspacesnavigate_pageNavigate your current tab (or pageId). Returns the SETTLED {url,title} after load (not the requested url), so redirects/failures are detectable.new_pageOpen a new tab, optionally at a URL. It becomes your current tab and returns its pageId. It is shown in the human's editor unless background: true — use background when you are working on your own so you do not pull their view away. Every tab you open is a tab in the human's editor, and leaving them behind is the top complaint — so: prefer navigate_page on your current tab when you are simply following a link; reuse a tab you opened earlier instead of opening another (list_pages shows which are yours via openedBy); keep at most one tab per task; and close_page your tabs the moment their work is done. Working alongside other agents (subagents, parallel tasks)? Pass owner, a short name for your task ("research-2"), and then pass this tab's pageId to every tool: once any tab has an owner, a call without pageId is refused rather than risk acting in another agent's tab, and close_page refuses a tab another owner opened.press_keyPress a key, or a key with modifiers, in your current tab (or pageId), where focus is: Escape to close a menu or a modal, Tab (Shift+Tab back) to move between fields, ArrowDown/ArrowUp and Enter to choose in a list or an autocomplete, Backspace, Delete, Home, End, PageUp, PageDown, Space, F1–F12, or one character with modifiers for a shortcut (key "a" with Meta selects all). Real key events, as a person's. `times` repeats it. To type text, use type_text or fill. A printable key into a password, one-time-code or card field is refused, as fill refuses it, unless allowCredentials (only for a value the human gave you).read_pageWhat your current tab (or pageId) SAYS: its visible text, cheaply — the default way to read content, check a result, or find what to do next. Far smaller than take_snapshot and gives no uids; call take_snapshot (filtered) only when you need to click or type. withinSelector reads one region ("main", "table", "[role=dialog]"); links: true adds each link's text and destination; maxChars caps the text (default 12000, and says when it cut).request_credentialAsk the human to let THIS workspace use a saved login for a site (one that list_credentials does not show). They answer in the cobrowser app: allow it here from now on, allow it once (one sign-in: it lasts until the password is filled, so a username page and then a password page both work, and lapses after ten minutes), or deny — you learn only the outcome, never the password, and a denial looks the same as no such login. Give a one-line `reason` the human will read (what you are doing that needs it). After a grant, use fill_credentials. Blocks until they answer, up to a few minutes.select_pageMake a tab your current tab: the one tools act on when not given a pageId. It does NOT move the human's view unless bringToFront: true (they may be reading another tab — only bring it to the front when you want them to look). For a single action in another tab, pass pageId to that tool instead. Once any tab here has an owner (agents working in parallel), tools refuse calls without pageId, so the current tab no longer matters: use it only to bring a tab to the human's attention.take_screenshotScreenshot your current tab (or pageId), or a single element by uid. Returns an image. Works on tabs the human is not looking at.take_snapshotThe things you can ACT on in your current tab (or pageId): visible interactive elements (links with their destination, buttons, inputs with their current value, selects with their options, open shadow roots included), each with a [uid] for click/fill. uids are STABLE — an element keeps its uid as long as it exists — so do not re-snapshot after every action: snapshot again only after a navigation, when new UI appears that you need, or when a click reports a uid is gone. Keep it small: withinSelector (e.g. "form", "[role=dialog]", "main"), textContains (matches labels; with a "/" it matches link destinations, e.g. "/orders/"), role ("button", "link", "input"), labeledOnly. To READ the page use read_page instead; to pull many values at once use evaluate_script. Embedded frames (a video player or widget from another site) show as [frame]: their contents are out of these tools' reach, so hand that part to the human.type_textType text into the currently-focused element; optionally press Enter. Refuses when the focused field is a password, one-time-code or card field, as fill does, unless allowCredentials.upload_fileAttach files from this Mac to the page: a résumé to a job application, a document to a form. Target the file input itself (by uid, or selector "input[type=file]": hidden inputs work) OR the button that opens a file picker ("Upload", "Attach", "Choose file"), by uid or selector. The human confirms the files and the site in the cobrowser app first, so this waits for them (unless they turned confirmation off for this workspace). filePaths are absolute (or start with ~/) and literal: no wildcards, no folders. Several files go in one call when the picker takes several; otherwise upload them one at a time. Hidden files and folders, ~/Library (apart from iCloud Drive and cloud-storage folders) and cobrowser's own data are always refused. Check the page with read_page afterwards: many sites upload on change and show the file once it is in.wait_forWait until any of the given strings appears in the page text (the result says which), and/or (settle: true) until the page stops changing — no DOM change for quietMs, default 500. Use settle after a click or navigation in a single-page app, so you read the page once it has finished updating rather than a half-rendered one.Security checks
6 checks have not been run yet.