mybrowser-mcp

v2.3.0
@alessai/mybrowser-mcp Checked 4 days ago Published 22 days ago

MCP server for MyBrowser - remote browser automation over Tailscale

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

browser_navigate

Navigate to a URL. Without tabId it uses this session's current tab, or opens a new temporary tab for the session if it has none.

ParameterTypeDescription
url *stringThe URL to navigate to
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (from new_tab or select_tab), never the user's active tab.

browser_go_back

Go back to the previous page

ParameterTypeDescription
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (from new_tab or select_tab), never the user's active tab.

browser_go_forward

Go forward to the next page

ParameterTypeDescription
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (from new_tab or select_tab), never the user's active tab.

browser_wait

Let the page settle: waits up to `time` seconds and, for waits of 10 s or less, returns as soon as the page has been quiet for 1 s (exact:true sleeps the full time). To wait for something specific use browser_wait_for, which returns the moment it appears.

ParameterTypeDescription
exactbooleanSleep the full time even if the page settles earlier (e.g. waiting for a timer).
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (from new_tab or select_tab), never the user's active tab.
timenumberSeconds to wait (required). Up to 10 s, returns early once the page has been quiet for 1 s; e.g. {time: 3}.

browser_click

Click an element. Target it by ref (e42 from a snapshot, o12 from browser_outline), mark, selector, role/name, matchText or label, or just describe it: {element: 'Publish button'}. Optional expect checks the result in the same call. E.g. {ref: 'o12'} or {element: 'Save', expect: 'Saved'}.

ParameterTypeDescription
elementstringWhat the element is, in plain words (e.g. 'Publish button'). With no ref/selector/role/name/matchText/label it is also the target: found on the page by code, site memory, then the decision model.
expectstringWhat should be true after the action, e.g. 'the Saved toast is shown'. The result then says confirmed, contradicted or not confirmed (checked for up to 3 s). Without a decision model only exact text i…
framestringWork inside an embedded frame instead of the page: part of the frame's URL (e.g. "officeapps.live.com"). An unknown value lists the page's frames. Refs from a frame's snapshot only work with the same…
labelstringForm field label text
marknumberSet-of-Marks annotation number from annotated screenshot
matchTextstringVisible text content to match on the element
namestringAccessible name or partial match
refstringExact element reference: e42 from a snapshot, or o12 from browser_outline
rolestringARIA role to match (e.g. button, searchbox, link)
selectorstringCSS selector to target the element directly
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_type

Type text into an editable element (submit:true presses Enter). Target it like browser_click: ref, selector, role/name, label, or just {element: 'Email field'}. E.g. {ref: 'o7', text: 'hello'}. For several fields use browser_fill_form.

ParameterTypeDescription
text *stringText to type into the element
elementstringWhat the element is, in plain words (e.g. 'Publish button'). With no ref/selector/role/name/matchText/label it is also the target: found on the page by code, site memory, then the decision model.
expectstringWhat should be true after the action, e.g. 'the Saved toast is shown'. The result then says confirmed, contradicted or not confirmed (checked for up to 3 s). Without a decision model only exact text i…
framestringWork inside an embedded frame instead of the page: part of the frame's URL (e.g. "officeapps.live.com"). An unknown value lists the page's frames. Refs from a frame's snapshot only work with the same…
labelstringForm field label text
marknumberSet-of-Marks annotation number from annotated screenshot
matchTextstringVisible text content to match on the element
namestringAccessible name or partial match
refstringExact element reference: e42 from a snapshot, or o12 from browser_outline
rolestringARIA role to match (e.g. button, searchbox, link)
selectorstringCSS selector to target the element directly
submitbooleanPress Enter after typing (default false)
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_hover

Hover over an element. Target it like browser_click: ref, selector, role/name, matchText, label, or just {element: 'Account menu'}.

ParameterTypeDescription
elementstringWhat the element is, in plain words (e.g. 'Publish button'). With no ref/selector/role/name/matchText/label it is also the target: found on the page by code, site memory, then the decision model.
expectstringWhat should be true after the action, e.g. 'the Saved toast is shown'. The result then says confirmed, contradicted or not confirmed (checked for up to 3 s). Without a decision model only exact text i…
framestringWork inside an embedded frame instead of the page: part of the frame's URL (e.g. "officeapps.live.com"). An unknown value lists the page's frames. Refs from a frame's snapshot only work with the same…
labelstringForm field label text
marknumberSet-of-Marks annotation number from annotated screenshot
matchTextstringVisible text content to match on the element
namestringAccessible name or partial match
refstringExact element reference: e42 from a snapshot, or o12 from browser_outline
rolestringARIA role to match (e.g. button, searchbox, link)
selectorstringCSS selector to target the element directly
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_press_key

Press a key on the keyboard

ParameterTypeDescription
key *stringName of the key to press or a character to generate, such as `ArrowLeft` or `a`
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_drag

Perform drag and drop between two elements. Target by ref, mark number, or description.

ParameterTypeDescription
endElementstringHuman-readable target element description
endMarknumberTarget Set-of-Marks annotation number
endRefstringExact target element reference from the page snapshot
endSelectorstringCSS selector for the target element
startElementstringHuman-readable source element description
startMarknumberSource Set-of-Marks annotation number
startRefstringExact source element reference from the page snapshot
startSelectorstringCSS selector for the source element
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_mouse

Click, double-click, right-click, hover, drag or scroll at a point of the last browser_screenshot, optionally typing text afterwards. For things with no element to target: canvases, slide or drawing editors, maps, and frames from other sites (e.g. PowerPoint/Word for the web). Take browser_screenshot of the tab first and give x/y in that image's pixels; a new screenshot is needed after the window is resized. Prefer browser_click and browser_type whenever the target appears in a snapshot.

ParameterTypeDescription
x *numberX in pixels of the last browser_screenshot of this tab (not page or screen pixels).
y *numberY in pixels of the last browser_screenshot of this tab.
actionstring
deltaXnumberscroll only: horizontal page pixels.
deltaYnumberscroll only: vertical page pixels (positive scrolls down).
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.
textstringTyped with the keyboard after the action, into whatever then has focus.
toXnumberdrag only: end X in screenshot pixels.
toYnumberdrag only: end Y in screenshot pixels.

browser_select_option

Select option(s) in a native dropdown. Target it like browser_click: ref, selector, role/name, label, or just {element: 'Country'}. E.g. {ref: 'o9', values: ['Oman']}. For several fields use browser_fill_form.

ParameterTypeDescription
values *arrayArray of values to select in the dropdown. This can be a single value or multiple values.
elementstringWhat the element is, in plain words (e.g. 'Publish button'). With no ref/selector/role/name/matchText/label it is also the target: found on the page by code, site memory, then the decision model.
expectstringWhat should be true after the action, e.g. 'the Saved toast is shown'. The result then says confirmed, contradicted or not confirmed (checked for up to 3 s). Without a decision model only exact text i…
framestringWork inside an embedded frame instead of the page: part of the frame's URL (e.g. "officeapps.live.com"). An unknown value lists the page's frames. Refs from a frame's snapshot only work with the same…
labelstringForm field label text
marknumberSet-of-Marks annotation number from annotated screenshot
matchTextstringVisible text content to match on the element
namestringAccessible name or partial match
refstringExact element reference: e42 from a snapshot, or o12 from browser_outline
rolestringARIA role to match (e.g. button, searchbox, link)
selectorstringCSS selector to target the element directly
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_snapshot

Capture accessibility snapshot of the current page. Returns ARIA tree with element references for interaction. Default: viewport-only + auto diff (compact output on repeat calls). Pass mode:'full' to force the whole tree.

ParameterTypeDescription
framestringWork inside an embedded frame instead of the page: part of the frame's URL (e.g. "officeapps.live.com"). An unknown value lists the page's frames. Refs from a frame's snapshot only work with the same…
modestring'full' returns the whole ARIA tree (original behavior). 'diff' returns only nodes added/removed/changed since the previous snapshot (requires a previous snapshot on the same tab + same viewportOnly se…
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.
viewportOnlybooleanIf true (default), only include elements visible in the viewport. Much smaller output. Set false for full page tree.

browser_screenshot

Take a screenshot of the current page. By default, annotates interactive elements with numbered markers. Use the marker numbers with browser_click({mark: N}) to interact. If this fails with a chrome-extension access error, close DevTools and retry with conflicting extensions disabled.

ParameterTypeDescription
annotatebooleanIf true (default), overlay numbered markers on interactive elements and include a compact label map. Use mark numbers to click elements.
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_get_console_logs

Get captured console logs. The first call starts capture for the tab and may return an empty list; call again after the behavior under test.

ParameterTypeDescription
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_set_viewport

Set browser viewport/device emulation for responsive testing using current primary presets: iphone, ipad, or desktop. Use browser_reset_viewport when finished.

ParameterTypeDescription
preset *stringViewport preset to apply: iphone=402x874 DPR3, ipad=820x1180 DPR2, desktop=1920x1080 DPR1.
orientationstringOptional orientation. Defaults to portrait for iphone/ipad and landscape for desktop.
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_reset_viewport

Reset viewport/device emulation on the target tab back to the real browser window.

ParameterTypeDescription
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_viewport_info

Inspect the current viewport, window size, device pixel ratio, and any MyBrowser viewport preset applied to the target tab.

ParameterTypeDescription
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

list_tabs

List all open browser tabs with their IDs, titles, URLs, and active status

select_tab

Make a tab this session's current tab, so tools without tabId act on it. The tab becomes this session's; a tab another agent session is using is refused.

ParameterTypeDescription
tabId *numberThe tab ID to switch to

new_tab

Opens a temporary tab by default. Call keep_tab to preserve it. Finish browser research with browser_cleanup.

ParameterTypeDescription
temporarybooleanTemporary by default. Set false to preserve the tab without calling keep_tab.
urlstringURL to open in the new tab. Opens blank tab if omitted.

close_tab

Close a specific browser tab by its ID

ParameterTypeDescription
tabId *numberThe tab ID to close

keep_tab

Preserve one tab created by this MCP session so browser_cleanup or session closure will not close it.

ParameterTypeDescription
tabId *integerThe temporary tab ID to preserve
browserIdstringBrowser containing the tab. Defaults to this session's resolved browser.

browser_cleanup

Close every temporary tab this MCP session opened across connected browsers and return routing to the shared default. Call once after browser research, including failure paths.

browser_extract

Extract structured data from the page. Returns a JSON array of objects matching the field selectors. Treats the page as a data source — no snapshot or refs needed.

ParameterTypeDescription
fields *objectMap of field names to CSS selectors relative to each container. Use 'self' for the container's own text content, '@href' or '@src' for attribute values. Example: {"name": "h2 a", "price": ".price", "u…
selector *stringCSS selector for container elements to extract from (e.g. '.product-card', 'table tr')
limitnumberMax items to extract (default 10)
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_find

Find elements on the page by role, name, text, or selector, or by meaning with query (whole page, returns o-refs). Read-only — does not interact with elements.

ParameterTypeDescription
limitnumberMax results to return (default 10)
namestringAccessible name or partial text match
querystringFind by meaning across the whole page, e.g. 'where do I set the end date'. Returns outline refs (o12) usable as ref in other tools.
rolestringARIA role to search for (e.g. button, link, searchbox)
selectorstringCSS selector
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.
textstringVisible text content to match

browser_fill_form

Fill a form. Preferred: items, a list of {target, value} that is resolved against the whole page (sections, rows and below-the-fold included), set, and verified per item in one call, with dryRun to preview. Legacy: fields, a map of label to value for the visible form, with optional submit.

ParameterTypeDescription
dryRunbooleanWith items: report which control each item maps to and what would change, without changing anything
fieldsobjectMap of field labels to values. Example: {"Username": "admin", "Password": "secret", "Country": "UAE"}
itemsarraySet many controls in one call, anywhere on the page (below the fold included): text fields, checkboxes, switches, radios, native and custom dropdowns. Each is checked afterwards. Buttons and links are…
submitAfterbooleanClick the submit button after filling all fields
submitTextstringText of submit button to click. Default: auto-detect (Submit, Login, Sign In, Save, Continue)
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_action

Execute a sequence of browser actions in a single call. Combines click, type, navigate, wait, press_key, snapshot, screenshot, select_option, scroll, extract, and assert steps. Each step auto-waits for stable DOM after mutating actions. Returns per-step results with timing. Stops on first error by default. Use this to perform multi-step workflows efficiently in one round trip.

ParameterTypeDescription
steps *arrayArray of action steps to execute in sequence. Each step runs one browser action. The sequence stops on the first error by default. Supported actions: click, type, navigate, wait, wait_for, press_key,…
stopOnErrorbooleanStop execution on first error (default true). Set false to continue through failures.
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_wait_for

Wait until something is true, returning the moment it is. Code conditions: {condition: 'text_visible', value: 'Saved'} (also text_not_visible, url_contains, url_matches, network_idle) or {condition: 'element_visible', selector: '.done'} (also element_not_visible); shorthand {text: 'Saved'} works too. Or until: a plain-language state, e.g. {until: 'the upload has finished processing', failIf: 'an error is shown', timeout: 120000}, judged by the decision model every poll. timeout is in ms (default 10000). Use this instead of fixed waits and repeated snapshots.

ParameterTypeDescription
conditionstringCode check: url_contains, url_matches, element_visible, element_not_visible, text_visible, text_not_visible or network_idle. Omit when using until.
failIfstringWith until: stop early when this is true, e.g. 'an upload error is shown'
pollIntervalnumberPoll interval in ms (default 500)
selectorstringCSS selector for element_visible / element_not_visible conditions
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.
timenumberSeconds to simply wait when there is nothing specific to wait for (same as browser_wait).
timeoutnumberMax wait time in ms (default 10000; up to 300000 with until)
untilstringPlain-language state to wait for, e.g. 'the video upload has finished processing'. Needs a decision model; without one, use condition.
valuestringParameter for the condition (URL substring, regex pattern, or text to match)

browser_assert

Run many checks on the current page in one call. Returns pass/fail per check and does not throw. Check types: url_contains, url_matches, element_visible, element_not_visible, text_contains, text_not_contains, element_count, console_no_errors, title_contains, setting (a control's state or value: {type:'setting', target:'Advantage+ audience', expect:'off'}; the whole page is read, including below the fold, and the state is read by code), page (a yes/no question about the page; needs a decision model, otherwise returns needs_judgment with page text). Use setting checks instead of scrolling and sn…

ParameterTypeDescription
checks *arrayList of assertion checks to run
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_record_start

Start recording browser actions. All subsequent browser tool calls will be captured as replayable steps until recording is stopped.

ParameterTypeDescription
name *stringName for this recording session (e.g. 'checkout_flow')
tabId *integerTab where recording starts

browser_record_stop

Stop the current recording session. Returns the recorded steps and reports whether server persistence completed.

browser_record_list

List all saved recordings from both extension storage and server filesystem.

browser_replay

Replay a previously recorded browser session on one authorized tab. Supports runtime variables, speed control, and step ranges.

ParameterTypeDescription
name *stringName of the recording to replay
tabId *integerAuthorized tab where the recording will replay
speednumberReplay speed multiplier. 0 = fastest, 1 = original timing, 2 = 2x speed
startFromStepnumberStart replay from this step number (1-based, for debugging)
stopAtStepnumberStop replay at this step number (for time-travel debugging)
stopOnErrorboolean
variablesobjectVariable overrides for parameterized replay

browser_learn

Learn the current page's interactive elements and save a Page Object Model. Captures all interactive elements with stable CSS selectors. Results are persisted to ~/.mybrowser/sites/{domain}.json for future reference.

ParameterTypeDescription
pageNamestringName for this page model (e.g. 'homepage', 'search', 'login'). If omitted, derived from page title.
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_site_info

Return stored site knowledge for a domain, including known pages, element maps, flows, and quirks. Uses previously learned Page Object Models from browser_learn.

ParameterTypeDescription
domainstringDomain to look up (e.g. 'github.com'). If omitted, uses the current tab's domain.
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

list_browsers

List connected browsers. Let normal calls use the shared default; call select_browser only when the user explicitly requests another browser.

select_browser

Use another browser for this session (by ID or name). Only when the user explicitly asked for a non-default browser. The choice sticks: do not call it before every action. It lasts until use_default_browser, browser_cleanup, the session ends, or 30 minutes without tool calls.

ParameterTypeDescription
browserIdstringThe browser to use: its ID (e.g. 'b1') or its name (e.g. 'MainLinux'). See list_browsers.

use_default_browser

Clear this session's browser override and return routing to the shared default browser.

set_default_browser

Save a shared default browser by stable browser name. Use this when multiple browsers are connected and you want future tool calls to prefer one browser unless a session-specific select_browser override is set.

ParameterTypeDescription
browserId *stringThe currently connected browser ID to save as the shared default. The browser's name is persisted, not the ephemeral ID.

get_default_browser

Show the shared default browser preference and whether it currently resolves to a connected browser.

clear_default_browser

Clear the shared default browser preference. After clearing, routing falls back to a session selection or auto-selects only when exactly one browser is connected.

browser_claim_tab

Claim exclusive ownership of a browser tab. Other sessions will not be able to perform mutating actions on this tab until it is released. Only needed in multi-session setups.

ParameterTypeDescription
tabId *numberThe tab ID to claim ownership of
browserIdstringBrowser ID (from list_browsers). Defaults to active browser.

browser_release_tab

Release ownership of a browser tab so other sessions can claim or use it.

ParameterTypeDescription
tabId *numberThe tab ID to release ownership of
browserIdstringBrowser ID. Defaults to active browser.

browser_sessions

List all active MCP sessions, their owned tabs, and target browser. Useful for understanding who is working on what in a multi-agent setup.

browser_handoff

Transfer ownership of a tab to another session. The current session must own the tab. Use browser_sessions to discover session IDs.

ParameterTypeDescription
tabId *numberThe tab ID to hand off
toSession *stringTarget session ID or name to transfer ownership to
browserIdstringBrowser ID. Defaults to active browser.
messagestringOptional message to accompany the handoff

browser_shared_get

Read a value from the shared inter-session key-value store.

ParameterTypeDescription
key *stringThe key to read from shared state

browser_shared_set

Write a value to the shared inter-session key-value store. Other sessions can read it with browser_shared_get.

ParameterTypeDescription
key *stringThe key to write to shared state
value *The value to store (any JSON-serializable value)

browser_shared_delete

Delete a key from the shared inter-session key-value store.

ParameterTypeDescription
key *stringThe key to delete from shared state

browser_shared_list

List all keys in the shared inter-session key-value store with their types and value previews.

browser_eval

Run JavaScript in the page (CDP Runtime.evaluate) and return the value of the last expression; promises are awaited. Read-only helpers are available as mb: mb.text(sel?), mb.texts(sel), mb.rows(tableSel?) -> [[cell...]], mb.links(sel?), mb.attr(sel, name), mb.count(sel), mb.visible(sel), mb.q/qa(sel), mb.waitFor(selectorOrTextOrFn, ms?) and mb.sleep(ms). Use one call for a whole loop (e.g. read every page of a list) instead of one call per step. To click or type, use the tools so targets are checked. E.g. {code: "mb.rows('table.results')"}.

ParameterTypeDescription
codestringJavaScript to run in the page (required). The value of the last expression is returned; promises are awaited. E.g. "document.title" or "mb.rows('table')".
framestringWork inside an embedded frame instead of the page: part of the frame's URL (e.g. "officeapps.live.com"). An unknown value lists the page's frames. Refs from a frame's snapshot only work with the same…
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.
timeoutnumberTimeout in milliseconds (default 5000; 15000 when the code uses mb.waitFor or mb.sleep)

browser_storage

Inspect and modify browser storage: localStorage, sessionStorage, and cookies. Use action 'get' to read, 'set' to write, 'delete' to remove a key, and 'clear' to remove entries. WARNING: clearing cookies WITHOUT a domain deletes ALL browser cookies and logs the user out of every website — that global wipe is refused unless confirmWipeAllCookies: true is set. Prefer passing domain to clear a single site's cookies.

ParameterTypeDescription
action *stringStorage operation to perform
type *stringStorage type to operate on
confirmWipeAllCookiesbooleanRequired true to clear ALL browser cookies when no domain is given; wipes every website login
domainstringCookie domain filter (only used with cookies type; scopes 'clear' to that site's cookies)
keystringStorage key (required for get/set/delete on localStorage/sessionStorage)
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.
valuestringValue to set (required for 'set' action on localStorage/sessionStorage)

browser_network

Capture and inspect network requests. Use start_capture to begin recording HTTP traffic, get_log to retrieve captured requests with optional filters, and clear to reset.

ParameterTypeDescription
action *stringstart_capture: enable network capture. stop_capture: disable capture and stop recording. get_log: return captured entries with filters. clear: reset the log.
filterobjectFilters to apply when action is get_log.
limitnumberMax entries to return (default 50). Only used with get_log.
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_performance

Inspect page performance. get_metrics returns Chrome DevTools Performance domain metrics (JSHeapUsedSize, Nodes, etc). get_web_vitals returns Core Web Vitals (LCP, FID, CLS) from the page.

ParameterTypeDescription
action *stringget_metrics: retrieve CDP Performance.getMetrics data. get_web_vitals: evaluate JS to get Core Web Vitals (LCP, FID, CLS).
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_upload

Upload files to a <input type='file'> element. Provide the CSS selector for the file input plus `files` (array of absolute paths that must exist on the BROWSER's machine — the machine running Chrome — attached via the Chrome debugger) OR `localFiles` (array of absolute paths on the MCP SERVER machine, streamed to the browser in memory without touching the browser's disk; each file capped at 40 MB by default via transfers.maxFileMb) — provide exactly one of the two. Works for photos, videos, documents — essential for posting to social media (TikTok, Instagram, Twitter).

ParameterTypeDescription
selector *stringCSS selector for the <input type='file'> element
filesarrayArray of absolute file paths that must exist on the BROWSER's machine (where Chrome runs) — attached via the Chrome debugger (e.g. ['/home/user/photo.jpg', '/tmp/video.mp4']).
localFilesarrayArray of absolute file paths that must exist on the MCP SERVER machine — the bytes are streamed to the browser in memory (nothing is written to the browser's disk). Each file is size-capped by the t…
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_download

Download a file from a URL using the browser's built-in download manager. The file is saved on the BROWSER's machine (wherever Chrome runs) under its default downloads folder, optionally in a subdirectory — it does NOT land on the MCP server machine; use browser_fetch_file when you need the bytes on the MCP server. Waits for the download to finish and returns the final absolute filename (Chrome renames on conflicts).

ParameterTypeDescription
directorystringSubdirectory under the browser's default downloads folder. If omitted, saves to the default location.
filenamestringSave as filename (e.g. 'photo.jpg'). If omitted, uses the URL filename.
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.
urlstringURL to download. If omitted, downloads the current page.

browser_clipboard

Read, write, or paste clipboard content. Useful for paste-based uploads on social media platforms. 'write' sets clipboard text, 'paste' simulates Ctrl+V into the focused element, 'read' returns current clipboard text.

ParameterTypeDescription
action *stringread: read clipboard text content. write: write text to clipboard. paste: simulate Ctrl+V paste into focused element.
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.
textstringText to write to clipboard (required for 'write' action)

browser_fetch_file

Fetch a URL THROUGH the selected browser (its cookies, session, and network position apply) and transfer the bytes to the MCP server machine. The file lands under ~/.mybrowser/transfers/downloads/<sessionId>/ on the MCP server machine together with a .provenance.json sidecar; it is NOT saved in the browser's downloads folder — for browser-local landing use browser_download. inline:true also returns the body as text (up to 256 KB), e.g. for JSON APIs: {url, inline: true}. urls fetches several in one call. Transfers are chunked and sha256-verified; the tool may take up to 5 minutes for larger…

ParameterTypeDescription
filenamestringFilename for the transferred file (sanitized to [A-Za-z0-9._-]). If omitted, uses the last URL path segment. Ignored with urls.
inlinebooleanAlso return the response body as text (JSON, HTML, CSV..., up to 256 KB), so there is no file to read afterwards. Use for API/JSON calls.
urlstringURL to fetch. The request runs through the selected browser, so its cookies, session, and network position apply. Loopback hostnames are rewritten to the canonical device host when one is configured.
urlsarraySeveral URLs in one call (up to 50, 2 at a time); one result line per URL. Use instead of one call per file.

browser_notes_list

List annotated notes the user has saved via the browser extension. Each note is an annotated screenshot plus a text comment. Default returns pending notes only. Use this to see what visual feedback the user has left for you to work through.

ParameterTypeDescription
statusstringWhich notes to list. Default 'pending' — notes the user has saved but not yet been addressed.

browser_notes_get

Fetch a single note with its full-resolution annotated screenshot. The image includes any arrows, boxes, and text the user drew on the page.

ParameterTypeDescription
id *stringThe note ID (from browser_notes_list)

browser_notes_archive

Mark a note as archived (hidden from the default pending list). Use this after you've addressed the user's feedback so the next agent doesn't see stale items.

ParameterTypeDescription
id *stringThe note ID to archive
resolutionstringOptional short note about how this was resolved (e.g. 'fixed button alignment in Header.tsx'). Preserved on the archived note for audit.

browser_notes_unarchive

Restore an archived note to pending status so it shows up in the default list again.

ParameterTypeDescription
id *stringThe note ID to restore to pending

browser_notes_delete

Permanently delete a note (both metadata and PNG). Archived notes can be deleted without force; pending notes require force=true to protect unreviewed feedback.

ParameterTypeDescription
id *stringThe note ID to permanently delete
forcebooleanRequired to delete a pending note. Archived notes can always be deleted.

browser_on

Register an autonomous reaction to a browser event. For example, browser_on('dialog', 'dismiss') auto-closes every alert/confirm/prompt so unattended flows don't stall. Use action='emit' with options.eventName to push events into a named queue you can consume later with browser_wait_for_event. Handlers are session-scoped and cleared on browser disconnect.

ParameterTypeDescription
action *stringHow to react. 'dismiss' closes/cancels. 'accept' confirms (with optional promptText). 'emit' pushes the event to a named queue (set options.eventName) for browser_wait_for_event to consume. For dialog…
event *stringThe event to react to. 'dialog' covers alert/confirm/prompt. 'beforeunload' is the unsaved-changes prompt. 'new_tab' fires when the browser opens a popup or target=_blank tab. 'network_timeout' fires…
browserIdstringTarget browser. Defaults to the active browser for this session.
optionsobject

browser_off

Unregister an event handler. Pass handlerId to remove a specific one, or omit to remove ALL handlers this session registered (across every browser).

ParameterTypeDescription
handlerIdstringThe specific handler to remove. Omit to remove ALL handlers this session has registered (across every browser, not just the active one).

browser_events_list

List currently-registered event handlers. Use before browser_off to find handler IDs, or to audit what auto-reactions are active in a session.

ParameterTypeDescription
browserIdstringFilter to a specific browser. Omit for all browsers.

browser_wait_for_event

Wait for an event to arrive in a named queue. Pair with browser_on(action='emit', options.eventName='...') to observe events without blocking the whole flow. Returns the event data when one arrives, or {ok:false, reason:'timeout'} after timeoutMs (default 30s).

ParameterTypeDescription
eventName *stringThe queue name to wait on. Must match the eventName in an earlier browser_on(action='emit') call.
timeoutMsintegerMax wait in milliseconds (default 30s). Returns {ok:false, reason:'timeout'} on expiry.

browser_lock

Acquire a named mutex for coordinating multi-agent critical sections beyond tab ownership. Non-reentrant: a session that already holds the lock cannot re-acquire it (returns error). FIFO fairness: waiters are granted in the order they queued. Optional ttlMs for crash-recovery auto-release. Auto-released when the session disconnects.

ParameterTypeDescription
name *stringLock name. Pick a stable identifier for the resource you're guarding (e.g. 'checkout.payment', 'inventory:sku-42'). Up to 128 chars.
timeoutMsintegerMax milliseconds to wait for the lock. Default 30s, max 10 minutes. Returns {acquired:false, reason:'timeout'} if the wait expires.
ttlMsintegerOptional auto-release TTL. If set, the lock releases itself after this many milliseconds even if the owner doesn't call browser_unlock. Max 1 hour. Useful as a crash-recovery safety net.

browser_unlock

Release a named lock previously acquired with browser_lock. Fails if the caller is not the current owner.

ParameterTypeDescription
name *stringThe lock name to release. Must be the same name passed to browser_lock.

browser_locks_list

List all currently-held locks. Shows name, owner session id, acquisition time, and TTL expiry (if any).

browser_diagnostics

Collect MyBrowser MCP diagnostics with redacted sensitive values: server version, connected browsers, sessions, selected browser, recent failures, extension status, and optional recent log tails.

ParameterTypeDescription
includeExtensionbooleanAsk the connected browser extension for its diagnostics. Defaults to true.
includeLogsbooleanInclude recent server log tails in the response. Defaults to false.

browser_support_bundle

Write a redacted support bundle JSON file under ~/.mybrowser/support-bundles containing diagnostics and recent server log tails.

ParameterTypeDescription
includeExtensionbooleanAsk the connected browser extension for its diagnostics. Defaults to true.

browser_outline

Compact map of every control on the page, including parts below the fold and collapsed sections: grouped by section, each with an id (o12), role, label and current state (on/off, selected option, field value). Use it instead of scrolling and snapshotting to find or check settings. Pass the id as ref: "o12" to browser_click, browser_type, browser_hover or browser_select_option. Ids stay the same across reads of the same page.

ParameterTypeDescription
focusstringWhat you are looking for, e.g. 'placements and budget'. Returns only the relevant sections.
sectionstringOnly sections whose title contains this text.
sweepbooleanScroll through the page first so lazily loaded sections are included, then scroll back. Default false.
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.

browser_triage

Sort a list on the page (invitations, messages, search results, table rows) into your labels, then act on the confirmed cards. Step 1 (dry run, default): reads every card, loading more as needed, and returns each label's cards with ids; with a decision model the labels are assigned for you (unsure ones go to review), without one you get the cards to label yourself. Step 2: call again with action {label, control} and confirm: [ids] to click that control in each confirmed card, paced, re-finding each card before its click, stopping if a dialog opens.

ParameterTypeDescription
labels *objectLabel name -> what it means, e.g. {"ignore": "sells software development or freelance services", "keep": "anyone else"}
actionobject
allowIrreversiblebooleanNeeded when the control deletes, pays, sends, publishes, reports or removes
cardsstringCSS selector of one card. Default: the page's main repeating list is found automatically.
confirmarrayCard ids to act on, copied from a dry run. Required to click anything.
labelsByIdobjectYour own labels for card ids, e.g. from a run without a decision model
loadbooleanScroll and press 'Show more' until the list stops growing (default true)
maxItemsintegerMost cards to read (default 300)
minConfidencenumberLabels below this go to review (default 0.8)
paceMsintegerPause between clicks (default 1500)
tabIdnumberTarget tab ID. If omitted, uses this session's current tab (opened with new_tab or browser_navigate, or chosen with select_tab), never the user's active tab.