agent-browser-bridge

v2.0.0
agent-browser-bridge Checked 4 days ago Published 1 month ago

Live multi-tab, multi-profile Chrome DevTools MCP bridge for AI agents (Antigravity, Claude, Cursor, Windsurf)

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

browser_list_profiles

List all currently connected browser profiles (e.g. Work, Personal, Brave, Edge), their IDs, names, and active status.

browser_list_tabs

List all open tabs across browser windows in the profile, including tabId, URL, title, active state, and debugger attachment.

ParameterTypeDescription
profilestringOptional profile name or ID

browser_switch_tab

Focus and switch to a specific tab by tabId, bringing its browser window to the foreground.

ParameterTypeDescription
tabId *numberThe ID of the tab to activate
profilestringOptional profile name or ID

browser_new_tab

Open a new tab with an optional URL.

ParameterTypeDescription
activebooleanWhether to make the new tab active (default true)
profilestringOptional profile name or ID
urlstringURL to open (defaults to 'about:blank')

browser_close_tab

Close a specific tab by tabId.

ParameterTypeDescription
tabId *numberThe ID of the tab to close
profilestringOptional profile name or ID

browser_navigate

Open a new tab or navigate an existing tabId to a specified URL.

ParameterTypeDescription
url *stringThe URL to open or navigate to
activebooleanWhether to make the tab active (default true)
profilestringOptional profile name or ID
tabIdnumberOmit to open a new tab, or provide tabId to navigate existing tab

browser_reload

Reload a specific tab with optional cache bypass.

ParameterTypeDescription
tabId *numberThe ID of the tab to reload
ignoreCachebooleanBypass browser cache (hard reload)
profilestringOptional profile name or ID

browser_read_all_tabs

Extract visible text and metadata from every open tab in the browser profile at once.

ParameterTypeDescription
maxLengthPerTabnumberMax characters to extract per tab (default 4000)
profilestringOptional profile name or ID

browser_get_interactive_snapshot

Assigns data-agent-ref IDs (ref_1, ref_2...) to all visible interactive elements in a tab and returns a structured map of clickable buttons, inputs, links, and coordinates.

ParameterTypeDescription
tabId *numberThe tabId to inspect
profilestringOptional profile name or ID

browser_take_snapshot

Take an accessibility (a11y) tree text snapshot of the page listing elements, roles, names, and node IDs.

ParameterTypeDescription
tabId *numberThe tabId to snapshot
profilestringOptional profile name or ID
verbosebooleanInclude full detailed a11y tree

browser_get_css_styles

Inspect computed CSS styles for an element specified by ref (e.g. 'ref_4') or CSS selector.

ParameterTypeDescription
tabId *numberThe tabId where the element is located
target *stringElement ref (e.g. 'ref_5') or CSS selector (e.g. 'button.primary')
profilestringOptional profile name or ID
propertiesarraySpecific CSS properties to retrieve (defaults to essential visual styles)

browser_wait_for

Wait for specific text or a CSS selector to appear on the page.

ParameterTypeDescription
tabId *numberThe tabId to watch
profilestringOptional profile name or ID
selectorstringCSS selector to wait for
textOne or more texts to wait for
timeoutnumberTimeout in ms (default 10000ms)

browser_act_on_ref

Click or type into a specific data-agent-ref element from browser_get_interactive_snapshot using trusted CDP hardware events and rendering a glowing visual action overlay.

ParameterTypeDescription
actionType *stringAction to perform: 'click' or 'type'
ref *stringThe ref ID, e.g. 'ref_14'
tabId *numberThe tabId where the element is located
clearFirstbooleanClear existing input value before typing
pressEnterbooleanPress Enter key after typing
profilestringOptional profile name or ID
textstringText to type if actionType is 'type'

browser_click

Click an element (by ref, CSS selector, or coordinates) using trusted hardware CDP events.

ParameterTypeDescription
tabId *numberThe tabId
buttonstringMouse button (default 'left')
clickCountnumberClick count: 1 for single click, 2 for double click
profilestringOptional profile name or ID
targetstringRef (e.g. 'ref_3') or CSS selector (e.g. '#submit')
xnumberExplicit X coordinate
ynumberExplicit Y coordinate

browser_hover

Hover over an element (by ref, selector, or coordinates) triggering mouse hover states.

ParameterTypeDescription
tabId *numberThe tabId
profilestringOptional profile name or ID
targetstringRef (e.g. 'ref_2') or CSS selector
xnumberExplicit X coordinate
ynumberExplicit Y coordinate

browser_drag

Drag an element or coordinate onto another element or coordinate.

ParameterTypeDescription
tabId *numberThe tabId
fromTargetstringSource ref or selector
fromXnumberSource X coordinate
fromYnumberSource Y coordinate
profilestringOptional profile name or ID
toTargetstringDestination ref or selector
toXnumberDestination X coordinate
toYnumberDestination Y coordinate

browser_fill

Fill an input or textarea element with text (focuses, clears existing text, and types value).

ParameterTypeDescription
tabId *numberThe tabId
target *stringRef (e.g. 'ref_4') or CSS selector (e.g. 'input[name="email"]')
value *stringText value to fill into the input
profilestringOptional profile name or ID

browser_fill_form

Fill multiple form inputs at once given a key-value mapping of targets to values.

ParameterTypeDescription
fields *objectObject of { selector_or_ref: value }, e.g. { '#username': 'admin', '#password': 'pass' }
tabId *numberThe tabId
profilestringOptional profile name or ID

browser_press_key

Press a keyboard key or shortcut (e.g. 'Enter', 'Tab', 'Escape', 'Backspace', 'ArrowDown').

ParameterTypeDescription
key *stringKey to press, e.g. 'Enter', 'Tab', 'Escape', 'a'
tabId *numberThe tabId
codestringOptional key code, e.g. 'Enter', 'KeyA'
profilestringOptional profile name or ID

browser_type_text

Type text into the currently focused element or into a specific target element.

ParameterTypeDescription
tabId *numberThe tabId
text *stringText string to type
profilestringOptional profile name or ID
targetstringOptional ref or selector to focus before typing

browser_upload_file

Upload local file(s) into a file input element.

ParameterTypeDescription
filePaths *Absolute local path(s) to the file(s) to upload
tabId *numberThe tabId
target *stringRef (e.g. 'ref_8') or selector for the file input element
profilestringOptional profile name or ID

browser_handle_dialog

Accept or dismiss a JavaScript alert, confirm, prompt, or beforeunload dialog.

ParameterTypeDescription
action *stringAction to take on dialog: 'accept' or 'dismiss'
tabId *numberThe tabId
profilestringOptional profile name or ID
promptTextstringOptional text to enter into a prompt dialog

browser_resize_page

Set viewport width, height, deviceScaleFactor, and mobile emulation.

ParameterTypeDescription
height *numberViewport height in pixels (e.g. 800, 844)
tabId *numberThe tabId
width *numberViewport width in pixels (e.g. 1280, 390)
deviceScaleFactornumberDevice scale factor (e.g. 1, 2)
mobilebooleanWhether to emulate mobile screen
profilestringOptional profile name or ID

browser_emulate

Emulate color scheme, CPU throttling, network conditions, geolocation, or user agent.

ParameterTypeDescription
tabId *numberThe tabId
colorSchemestringEmulate dark or light color scheme
cpuThrottlingRatenumberCPU slowdown factor (1 to 20, 1 disables)
geolocationstringGeolocation as 'latitude,longitude', e.g. '37.7749,-122.4194'
networkConditionsstringNetwork throttling profile
profilestringOptional profile name or ID
userAgentstringCustom user agent override string

browser_list_network_requests

List recorded network requests for a tab (status, method, url, resourceType, mimeType, timestamp).

ParameterTypeDescription
tabId *numberThe tabId to inspect
profilestringOptional profile name or ID

browser_get_network_request

Get full details and response body of a specific network request by requestId.

ParameterTypeDescription
requestId *stringThe requestId from network request list
tabId *numberThe tabId where the request was made
profilestringOptional profile name or ID

browser_get_network_body

Fetch the raw response body of a specific network requestId obtained from browser_get_telemetry or network requests.

ParameterTypeDescription
requestId *stringThe requestId
tabId *numberThe tabId
profilestringOptional profile name or ID

browser_get_cookies

Retrieve all cookies for the current tab's active URL.

ParameterTypeDescription
tabId *numberThe tabId
profilestringOptional profile name or ID

browser_clear_cookies

Clear all cookies for the browser profile.

ParameterTypeDescription
tabId *numberThe tabId
profilestringOptional profile name or ID

browser_storage

Inspect or manipulate localStorage or sessionStorage in a tab.

ParameterTypeDescription
operation *stringStorage operation to perform
tabId *numberThe tabId
keystringStorage key name
profilestringOptional profile name or ID
storageTypestringType of storage (default 'localStorage')
valuestringValue to set (if operation is 'set')

browser_list_console_messages

List captured console logs, warnings, errors, and uncaught exceptions with timestamps and stack traces.

ParameterTypeDescription
tabId *numberThe tabId to inspect
levelstringFilter by message level
profilestringOptional profile name or ID

browser_get_telemetry

Attach CDP debugger to a tab and retrieve buffered console logs, uncaught exceptions, dialogs, and recorded network requests.

ParameterTypeDescription
tabId *numberThe tabId to inspect
clearAfterReadbooleanClear buffered telemetry after reading (default false)
profilestringOptional profile name or ID

browser_screenshot

Capture a PNG screenshot of a specific tab.

ParameterTypeDescription
tabId *numberThe tabId to screenshot
profilestringOptional profile name or ID

browser_take_heapsnapshot

Take a V8 heap snapshot for memory leak analysis.

ParameterTypeDescription
tabId *numberThe tabId
profilestringOptional profile name or ID

browser_performance_trace

Start or stop a Chrome performance timeline trace.

ParameterTypeDescription
action *stringTrace action: 'start' or 'stop'
tabId *numberThe tabId
profilestringOptional profile name or ID

browser_performance_analyze_insight

Extract Core Web Vitals and navigation performance timings (TTFB, FCP, DOMContentLoaded, LoadTime).

ParameterTypeDescription
tabId *numberThe tabId to analyze
profilestringOptional profile name or ID

browser_eval_js

Execute arbitrary JavaScript or DOM inspection inside any tab via CDP Runtime.evaluate.

ParameterTypeDescription
expression *stringJavaScript code or expression to evaluate
tabId *numberThe tabId to run code in
profilestringOptional profile name or ID

browser_raw_cdp

Execute any raw Chrome DevTools Protocol (CDP) method on a tab (e.g. DOM.getDocument, Input.dispatchMouseEvent, Network.getCookies).

ParameterTypeDescription
method *stringCDP method name, e.g. 'DOM.getDocument' or 'Network.getCookies'
tabId *numberThe tabId to control
commandParamsobjectOptional parameters object for the CDP command
profilestringOptional profile name or ID