opencode-browser-mcp
v0.20.2MCP 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.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
focus | boolean | Bring the tab to the foreground (default true). |
target | string | Which browser to open in (label or id from browser_targets). Omit unless several browsers are connected. |
url | string | URL to load. Omit for a blank tab. |
browser_click
Click an element. Target it by `ref` (from browser_snapshot, most reliable), CSS `selector`, or absolute `x`/`y` coordinates.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
button | string | Mouse button (default left). |
ref | string | Element ref from a prior browser_snapshot. |
selector | string | CSS selector. |
tabId | number | Specific tab id; defaults to the group's active tab. |
x | number | Absolute x coordinate (with y). |
y | number | Absolute y coordinate (with x). |
browser_double_click
Double-click an element, targeted by `ref`, CSS `selector`, or `x`/`y` coordinates.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
ref | string | Element ref from a prior browser_snapshot. |
selector | string | CSS selector. |
tabId | number | Specific tab id; defaults to the group's active tab. |
x | number | |
y | number |
browser_type
Type text into the focused element (or first focus `ref`/`selector`). Optionally press Enter after.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
text * | string | Text to type. |
ref | string | Element ref from a prior browser_snapshot. |
selector | string | CSS selector. |
submit | boolean | Press Enter after typing. |
tabId | number | Specific 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`.
| Parameter | Type | Description |
|---|---|---|
fields * | array | Fields to fill, in order. |
group * | string | Named tab group the action targets. Created on first browser_open. |
tabId | number | Specific 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.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
ref | string | Element ref from a prior browser_snapshot. |
selector | string | CSS selector. |
tabId | number | Specific tab id; defaults to the group's active tab. |
value | string | Single value to select. |
values | array | Multiple values (multi-select). |
browser_scroll
Scroll the page (or an element). Provide `deltaX`/`deltaY`, or `to: 'top' | 'bottom'`.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
deltaX | number | |
deltaY | number | |
ref | string | Scroll within this element instead of the page. |
tabId | number | Specific tab id; defaults to the group's active tab. |
to | string |
browser_press_key
Press a single key or chord (e.g. "Enter", "Escape", "Control+a").
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
key * | string | Key name, e.g. "Enter". |
tabId | number | Specific 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).
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
ms | number | Fixed delay in milliseconds. |
selector | string | CSS selector to wait for. |
state | string | |
tabId | number | Specific tab id; defaults to the group's active tab. |
browser_close
Close a tab (pass `tabId`) or the whole group (omit `tabId`).
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
tabId | number | Specific 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.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
tabId | number | Specific tab id; defaults to the group's active tab. |
browser_get_text
Extract the visible text / readable content of the group's active tab.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
tabId | number | Specific tab id; defaults to the group's active tab. |
browser_tabs
List open tab groups and their tabs. Omit `group` to list everything.
| Parameter | Type | Description |
|---|---|---|
group | string | Restrict 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).
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
fullPage | boolean | Capture the full scrollable page, not just the viewport. |
tabId | number | Specific tab id; defaults to the group's active tab. |
browser_back
Go back in the tab's history.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
tabId | number | Specific tab id; defaults to the group's active tab. |
browser_forward
Go forward in the tab's history.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
tabId | number | Specific tab id; defaults to the group's active tab. |
browser_reload
Reload the group's active tab.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
tabId | number | Specific tab id; defaults to the group's active tab. |
browser_activate
Bring a group's tab to the foreground (focus its window and tab).
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
tabId | number | Specific 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`.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
ref | string | Element ref from a prior browser_snapshot. |
selector | string | CSS selector. |
tabId | number | Specific tab id; defaults to the group's active tab. |
x | number | |
y | number |
browser_drag
Drag from a source element to a target element (each by `ref` or `selector`).
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
fromRef | string | Source element ref. |
fromSelector | string | Source CSS selector. |
ref | string | Target element ref. |
selector | string | Target CSS selector. |
tabId | number | Specific 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).
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
paths * | array | Absolute file path(s) to attach. |
ref | string | Element ref from a prior browser_snapshot. |
selector | string | CSS selector. |
tabId | number | Specific 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.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
outer | boolean | Outer HTML (default true). |
ref | string | Element ref from a prior browser_snapshot. |
selector | string | CSS selector. |
tabId | number | Specific 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).
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
name | string | A single attribute name to read. |
ref | string | Element ref from a prior browser_snapshot. |
selector | string | CSS selector. |
tabId | number | Specific 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.
| Parameter | Type | Description |
|---|---|---|
group * | string | Named tab group the action targets. Created on first browser_open. |
selector * | string | CSS selector to match. |
limit | number | Max matches (default 50). |
tabId | number | Specific tab id; defaults to the group's active tab. |