monkeybot-browser-mcp
v0.8.1monkeybot MCP server wrapping browser-harness for real-browser control and site playbooks.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser_act
Run up to 25 sequential browser steps in one turn. Each step is ``{do, ...}``. Allowed do values: click, input, select, press, click_text, wait_for, wait_idle, goto, scroll, settle, tab, open_tab, fill_form, login. After each action the page settles; one observation is returned at the end for the focused tab. On the first failure (stop_on_error=True, default) returns completed steps, failed_step, error, and the current observation so you can resume. login maps to browser_login (user-focused tab; always pass expected_origin). fill_form resolves fields by label (label[for], aria-label, placehol…
| Parameter | Type | Description |
|---|---|---|
steps * | array | |
observe | ||
stop_on_error | boolean | |
tab |
browser_screenshot
Capture the current viewport as a JPEG (PNG available). LAST-RESORT FALLBACK: use browser_get_elements + browser_click_by_index / browser_input_by_index for ordinary clicking and typing instead — it's cheaper (no image tokens) and more reliable (indexed elements vs. guessed pixels). Reach for this tool only when browser_get_elements doesn't surface what you need: canvas-based apps, heavy shadow-DOM UIs, drag-and-drop, or visually confirming rendering/layout. Pass ``annotate=True`` to draw current index labels so the next click can still use browser_click_by_index. Returns JSON with a works…
| Parameter | Type | Description |
|---|---|---|
annotate | boolean | |
format | string | |
full | boolean | |
max_dim | ||
quality | integer | |
tab |
browser_click_by_index
Click an interactive element by index from browser_get_elements. Prefer this over browser_click(x, y) — no pixel-guessing, resilient to layout shifts. Default observe="diff" returns the settled page snapshot in the response.
| Parameter | Type | Description |
|---|---|---|
index * | integer | |
observe | ||
tab |
browser_input_by_index
Click and type text into an indexed input/textarea/contenteditable element from browser_get_elements. Prefer this over screenshot + coordinate typing. mode: ``auto`` (default) tries an in-page value set and falls back to real key events; ``keys`` always types; ``fast`` never falls back. Pass ``keys`` for comboboxes and fields that only listen to keydown. Override the default with BROWSER_MCP_FILL_MODE. Default observe="diff" returns the settled snapshot.
| Parameter | Type | Description |
|---|---|---|
index * | integer | |
text * | string | |
clear_first | boolean | |
mode | string | |
observe | ||
tab |
browser_select_by_index
Select a <select> dropdown option by visible text, using the index from browser_get_elements.
| Parameter | Type | Description |
|---|---|---|
index * | integer | |
text * | string | |
observe | ||
tab |
browser_click
Click at viewport coordinates (x, y). LAST-RESORT FALLBACK: prefer browser_get_elements + browser_click_by_index for ordinary clicking. Only use raw coordinates for elements browser_get_elements can't represent (canvas, shadow DOM, drag targets) or after visually confirming a spot via browser_screenshot.
| Parameter | Type | Description |
|---|---|---|
x * | number | |
y * | number | |
button | string | |
clicks | integer | |
observe | ||
tab |
browser_fill
Fill a form input (works with React/Vue controlled inputs).
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
text * | string | |
clear_first | boolean | |
observe | ||
tab | ||
timeout | number |
browser_press_key
Press a key. Modifiers bitfield: 1=Alt, 2=Ctrl, 4=Meta(Cmd), 8=Shift.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
modifiers | integer | |
observe | ||
tab |
browser_scroll
Scroll the page at viewport position (x, y).
| Parameter | Type | Description |
|---|---|---|
x * | number | |
y * | number | |
dx | number | |
dy | number | |
observe | ||
tab |
browser_click_text
Click the interactive element whose visible text or aria-label matches. role restricts to button|link|tab|menuitem|checkbox|radio|option. exact toggles equality vs substring. Prefers visible, in-viewport, top elements. On a miss, returns did_you_mean with up to five near-misses.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
exact | boolean | |
nth | integer | |
observe | ||
role | ||
tab |
browser_upload
Set files on a file input. path must be an absolute filepath on the host.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
selector * | string | |
tab |
browser_wait_for
Wait until an element matching selector exists (optionally visible).
| Parameter | Type | Description |
|---|---|---|
selector * | string | |
tab | ||
timeout | number | |
visible | boolean |
browser_wait_idle
Wait until network activity is idle, then until the DOM is quiet. Network idle is only available on the focused tab. On another tab this falls back to a DOM settle and reports idle as null.
| Parameter | Type | Description |
|---|---|---|
idle_ms | number | |
tab | ||
timeout | number |
browser_list_playbooks
List playbook markdown filenames and executable flows, optionally filtered by host.
| Parameter | Type | Description |
|---|---|---|
host |
browser_read_playbook
Read the playbook markdown for a host or URL.
| Parameter | Type | Description |
|---|---|---|
host * | string |
browser_write_playbook
Write or append a site playbook. ```playbook fences are validated before save.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
host * | string | |
append | boolean |
browser_run_playbook
Execute a named ```playbook flow from the host markdown file. Substitutes {{param}} into string fields, runs steps via browser_act, then checks expect (url_contains, selector, text). On failure returns failed_step plus an observation so you can continue by hand. Secrets are never params — use {do: login, expected_origin: ...} which maps to browser_login (the user-focused tab). Capped by BROWSER_MCP_PLAYBOOK_TIMEOUT_S (default 120).
| Parameter | Type | Description |
|---|---|---|
host * | string | |
name * | string | |
observe | ||
params | ||
tab |
browser_goto
Navigate to a URL in the current tab (or a new tab if new_tab=True / current is blank). Pass tab= to navigate a specific tab in place without focusing it. new_tab=True opens a new tab and focuses it (same as browser_open_tab with focus=True). Returns page info, matching playbook filenames and executable flows, and a full observation by default (observe="diff" / "none" to change that).
| Parameter | Type | Description |
|---|---|---|
url * | string | |
new_tab | boolean | |
observe | ||
tab |
browser_get_elements
Return interactive elements as an indexed text tree — the default way to see the page. Prefer this over browser_screenshot for locating things to click/type into. Injects a DOM-walker (vendored from alibaba/page-agent, MIT licensed) that scans the live DOM and returns lines like ``[12]<input placeholder='Email' />`` / ``[35]<button>Submit</button>``, indentation shows parent/child nesting. Use the numeric index with browser_click_by_index / browser_input_by_index / browser_select_by_index — no coordinates needed. Defaults to the visible viewport (override with viewport_only=false or BROW…
| Parameter | Type | Description |
|---|---|---|
contains | ||
kind | ||
max_elements | integer | |
observe | string | |
tab | ||
viewport_only |
browser_get_text
Readable page text for reading, separate from the interactive element tree. Prefers ``<main>`` / ``<article>`` / ``[role=main]``, else ``body``. Strips script, style, nav, footer, and aside. Pass selector to read a specific subtree. Use this instead of ``browser_js("document.body.innerText")``.
| Parameter | Type | Description |
|---|---|---|
max_chars | integer | |
selector | ||
tab |
browser_js
Evaluate JavaScript in the attached tab and return the result (DOM read/extraction).
| Parameter | Type | Description |
|---|---|---|
expression * | string | |
tab |
browser_extract
Extract structured rows from elements matching ``selector``. Each field is a relative sub-selector (``"title": "h2"``). Append ``@attr`` for an attribute (``"href": "a@href"``). Missing nodes are null. Use this instead of ad-hoc ``browser_js`` scraping.
| Parameter | Type | Description |
|---|---|---|
fields * | object | |
selector * | string | |
limit | integer | |
tab |
browser_page_info
Return current page url, title, viewport size, and scroll position.
| Parameter | Type | Description |
|---|---|---|
tab |
browser_tabs
List open browser tabs with aliases, focus, and last-used times.
browser_switch_tab
Switch to a tab by alias or target_id (from browser_tabs).
| Parameter | Type | Description |
|---|---|---|
target_id * | string | |
observe |
browser_open_tab
Open a URL in a new tab. Defaults to the background (does not steal focus). alias must match [a-z][a-z0-9_-]{0,23}. At most 10 agent-controlled tabs; on the cap this returns tab_limit_reached with scope "chat". An app-wide refusal returns the same error with scope "app" and does not open or close anything. When focus=True, returns a full observation by default.
| Parameter | Type | Description |
|---|---|---|
url * | string | |
alias | ||
focus | boolean | |
observe |
browser_close_tab
Close a tab by alias or target id. Refuses to close the last tab (navigates it to about:blank instead). If the closed tab was focused, focuses the most recently used remaining tab.
| Parameter | Type | Description |
|---|---|---|
tab * | string |
browser_read_tabs
Fan-out read over tabs without changing focus. ``tabs`` defaults to agent-opened tabs. mode is ``text`` (readable body) or ``tree`` (indexed element tree). Sequential; one IPC call per tab.
| Parameter | Type | Description |
|---|---|---|
max_chars | integer | |
mode | string | |
tabs |
browser_login
Log in with a saved Spaces password without revealing the credential. Call this only when the user asked to sign in. Do not type or read the password. Returns {ok, loggedIn, origin} — never the password value — plus two optional fields: - mfa: "none" | "completed" | "needed" — whether the sealed login also handled a one-time code, and whether the site still needs one from you. - mode: "keystroke" | "network" | "passkey" — how the credential was delivered; informational only, does not change what you do next. This signs in to the tab the user has focused, which is not necessarily…
| Parameter | Type | Description |
|---|---|---|
expected_origin | ||
username |
browser_passkey
Sign in with a saved Spaces passkey without revealing any key material. Call this only when the user asked to sign in and a passkey (not a saved password) is what's stored for the site. Returns {ok, loggedIn, origin, mode: "passkey"} — never any credential material. UNVERIFIED (phase 4.4): this has not been exercised against a live browser or a real passkey-enabled site — see docs/credential-broker.md in the Spaces repo. Prefer browser_login when a saved password exists. Signs in to the tab the user has focused, same caveat as browser_login: pass expected_origin to make the bridge refus…
| Parameter | Type | Description |
|---|---|---|
expected_origin |
browser_stop
Stop the active browser backend (cleanup after browsing; important for cloud/AgentCore browsers).