opencode-browser-mcp

v0.20.2
@vymalo/opencode-browser-mcp Checked 3 days ago Published 22 days ago

MCP server for @vymalo/opencode-browser — exposes the browser_* tools (open, click, type, scroll, screenshot, snapshot, …) over the Model Context Protocol…

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

browser_open

Open a new browser tab inside a named tab group (creates the group if it doesn't exist yet). Returns the tab id, final URL and page title.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
focusbooleanBring the tab to the foreground (default true).
targetstringWhich browser to open in (label or id from browser_targets). Omit unless several browsers are connected.
urlstringURL to load. Omit for a blank tab.

browser_navigate

Navigate an existing tab in the group to a new URL.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
url *stringURL to navigate to.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_click

Click an element. Target it by `ref` (from browser_snapshot, most reliable), CSS `selector`, or absolute `x`/`y` coordinates.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
buttonstringMouse button (default left).
refstringElement ref from a prior browser_snapshot.
selectorstringCSS selector.
tabIdnumberSpecific tab id; defaults to the group's active tab.
xnumberAbsolute x coordinate (with y).
ynumberAbsolute y coordinate (with x).

browser_double_click

Double-click an element, targeted by `ref`, CSS `selector`, or `x`/`y` coordinates.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
refstringElement ref from a prior browser_snapshot.
selectorstringCSS selector.
tabIdnumberSpecific tab id; defaults to the group's active tab.
xnumber
ynumber

browser_type

Type text into the focused element (or first focus `ref`/`selector`). Optionally press Enter after.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
text *stringText to type.
refstringElement ref from a prior browser_snapshot.
selectorstringCSS selector.
submitbooleanPress Enter after typing.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_fill

Fill several form fields in one call. Each field targets a `ref` or CSS `selector` and sets its `value`.

ParameterTypeDescription
fields *arrayFields to fill, in order.
group *stringNamed tab group the action targets. Created on first browser_open.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_select

Choose option(s) in a <select> element, or set the selection of a control.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
refstringElement ref from a prior browser_snapshot.
selectorstringCSS selector.
tabIdnumberSpecific tab id; defaults to the group's active tab.
valuestringSingle value to select.
valuesarrayMultiple values (multi-select).

browser_scroll

Scroll the page (or an element). Provide `deltaX`/`deltaY`, or `to: 'top' | 'bottom'`.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
deltaXnumber
deltaYnumber
refstringScroll within this element instead of the page.
tabIdnumberSpecific tab id; defaults to the group's active tab.
tostring

browser_press_key

Press a single key or chord (e.g. "Enter", "Escape", "Control+a").

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
key *stringKey name, e.g. "Enter".
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_wait

Wait for a fixed delay (`ms`) or until a `selector` reaches `state` (visible/hidden/attached).

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
msnumberFixed delay in milliseconds.
selectorstringCSS selector to wait for.
statestring
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_close

Close a tab (pass `tabId`) or the whole group (omit `tabId`).

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_release

Release control of the browser: stop driving and detach the debugger (clears the 'being debugged' banner) without closing tabs. The next browser_* call re-attaches. Use this when you're done so the user gets their browser back.

browser_snapshot

Capture an accessibility/DOM snapshot of the page with stable element refs. Prefer this over guessing selectors — pass the returned refs to browser_click/type/etc.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_get_text

Extract the visible text / readable content of the group's active tab.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_tabs

List open tab groups and their tabs. Omit `group` to list everything.

ParameterTypeDescription
groupstringRestrict to one group.

browser_targets

List the browsers (extensions) currently connected to the bridge, with their id, label, browser and owned groups. Use a returned id/label as `target` in browser_open when several are connected.

browser_screenshot

Capture a screenshot of the group's active tab. Returns the image (the OpenCode plugin saves it to disk and returns the path — use the read tool to view it).

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
fullPagebooleanCapture the full scrollable page, not just the viewport.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_back

Go back in the tab's history.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_forward

Go forward in the tab's history.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_reload

Reload the group's active tab.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_activate

Bring a group's tab to the foreground (focus its window and tab).

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_hover

Move the pointer over an element (reveals hover menus/tooltips). Target by `ref`, `selector`, or `x`/`y`.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
refstringElement ref from a prior browser_snapshot.
selectorstringCSS selector.
tabIdnumberSpecific tab id; defaults to the group's active tab.
xnumber
ynumber

browser_drag

Drag from a source element to a target element (each by `ref` or `selector`).

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
fromRefstringSource element ref.
fromSelectorstringSource CSS selector.
refstringTarget element ref.
selectorstringTarget CSS selector.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_upload

Set the files on a file <input>, by absolute path(s) on the machine running the bridge. CDP executor only (Chromium).

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
paths *arrayAbsolute file path(s) to attach.
refstringElement ref from a prior browser_snapshot.
selectorstringCSS selector.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_get_html

Get the HTML of the page (or of a `ref`/`selector` element). `outer: false` for innerHTML.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
outerbooleanOuter HTML (default true).
refstringElement ref from a prior browser_snapshot.
selectorstringCSS selector.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_get_attribute

Read an element's tag, text, value, checked state, bounding box, and attributes (or one named attribute).

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
namestringA single attribute name to read.
refstringElement ref from a prior browser_snapshot.
selectorstringCSS selector.
tabIdnumberSpecific tab id; defaults to the group's active tab.

browser_query

Find visible elements matching a CSS selector. Returns each with a stable ref you can pass to other tools.

ParameterTypeDescription
group *stringNamed tab group the action targets. Created on first browser_open.
selector *stringCSS selector to match.
limitnumberMax matches (default 50).
tabIdnumberSpecific tab id; defaults to the group's active tab.