real-browser

v1.2.1
io.github.ofershap/real-browser Checked 7 hours ago Published 8 months ago

MCP server + Chrome extension for AI browser control with real sessions.

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 in the active browser tab

ParameterTypeDescription
url *stringThe URL to navigate to
waitUntilstringWhen to consider navigation complete

browser_click

Click an element on the page using a ref from snapshot or a CSS selector

ParameterTypeDescription
buttonstring
doubleClickboolean
refstringElement reference from snapshot (e.g. "e12")
selectorstringCSS selector for the element

browser_type

Type text into an input element

ParameterTypeDescription
text *stringText to type
clearbooleanClear the field before typing
refstringElement reference from snapshot
selectorstringCSS selector for the input

browser_scroll

Scroll the page or an element. Supports pixel offsets, scrolling to elements, and named positions (top/bottom). Works with virtual scroll containers used by social media sites.

ParameterTypeDescription
amountnumberPixels to scroll
directionstring
positionstringScroll to top or bottom of page
selectorstringCSS selector of scroll container (for virtual scroll)
toElementstringRef or CSS selector to scroll into view

browser_press_key

Press a keyboard key or combination (Enter, Escape, Tab, ArrowDown, etc). Supports modifiers like Ctrl+A, Cmd+C.

ParameterTypeDescription
key *stringKey name (e.g. "Enter", "Escape", "Tab", "ArrowDown", "a")
modifiersarrayModifier keys to hold
refstringElement ref to focus before pressing
selectorstringCSS selector to focus before pressing

browser_wait

Wait for a condition: element to appear, element to disappear, or a fixed delay. Useful for SPAs and dynamic content.

ParameterTypeDescription
delaynumberFixed delay in ms (ignores selector)
selectorstringCSS selector to wait for
statestringWait until element is visible, hidden, or attached to DOM
timeoutnumberMax wait time in ms

browser_snapshot

Get an accessibility tree snapshot of the page. Returns element refs you can use with click, type, and other tools. Use compact mode (default) for smaller output - only interactive elements.

ParameterTypeDescription
compactbooleanWhen true (default), returns only interactive elements with minimal nesting. Set false for full tree.
selectorstringCSS selector to scope the snapshot

browser_screenshot

Capture a screenshot of the visible page area

ParameterTypeDescription
formatstring
qualitynumberJPEG quality (ignored for PNG)

browser_console

Read console messages (log, warn, error) from the browser

ParameterTypeDescription
clearbooleanClear messages after reading

browser_network

Read network requests made by the page. Filter by URL pattern.

ParameterTypeDescription
clearbooleanClear requests after reading
filterstringURL regex pattern to filter requests

browser_tabs

Manage browser tabs: list, create, close, or focus

ParameterTypeDescription
action *stringTab action
tabIdnumberTab ID for close/focus
urlstringURL for create action

browser_find

Find elements on the page using natural language (e.g. "login button", "search input"). Returns refs you can use with click/type.

ParameterTypeDescription
query *stringNatural language description of what to find
limitnumberMax matches to return

browser_text

Extract raw text content from the page or a specific element

ParameterTypeDescription
maxLengthnumberMax text length to return
selectorstringCSS selector to scope text extraction

browser_hover

Hover over an element to trigger tooltips, dropdown menus, or hover states

ParameterTypeDescription
refstringElement reference from snapshot
selectorstringCSS selector for the element

browser_select

Select an option from a dropdown/select element

ParameterTypeDescription
indexnumberOption index to select (0-based)
labelstringOption label text to select
refstringElement reference from snapshot
selectorstringCSS selector for the select element
valuestringOption value to select

browser_evaluate

Execute JavaScript in the page and return the result. Use for DOM queries, reading page state, or any operation not covered by other tools.

ParameterTypeDescription
expression *stringJavaScript expression or code to evaluate in the page context

browser_click_text

Click an element by its visible text content. Works on React dropdowns, portals, and overlays that may not appear in snapshots. CSP-safe (no eval). Prefers deepest matching element.

ParameterTypeDescription
text *stringText to match against element content (first line)
exactbooleanRequire exact match instead of substring (default false)
indexnumberWhich match to click if multiple (0-based, default 0)

browser_handle_dialog

Handle JavaScript dialogs (alert, confirm, prompt). Dialogs block page interaction until handled.

ParameterTypeDescription
action *stringAccept or dismiss the dialog
promptTextstringText to enter for prompt() dialogs