usable-browser-agent

v0.7.1
io.github.Savvy-Tech-Sphere/usable-browser-agent Checked 3 days ago Published 2 months ago

MCP server and Firefox add-on that let an AI agent drive your real, logged-in browser.

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

browser_workflow_recall

Search local workflow memory BEFORE starting any multi-step or repeated browser task. Use this first for changing sites like app stores, admin consoles, checkout flows, dashboards, or any task you may have done before.

ParameterTypeDescription
limitnumberMaximum matches to return (1-10, default 5).
querystringTask objective or memory id, e.g. 'create a new app in Google Play Console'.
sitestringSite name or domain, e.g. 'Google Play Console' or 'play.google.com'.
tagsarrayOptional tags to narrow recall.

browser_workflow_remember

Save the verified reusable workflow after discovering or completing a browser task. Store durable UI labels, decisions, and pitfalls; do not store passwords, one-time codes, or transient [ref=eN] handles.

ParameterTypeDescription
steps *arrayOrdered durable steps that worked. Use visible labels and page names, not transient refs.
task *stringReusable task objective, e.g. 'Create a new Android app in Google Play Console'.
confidencestringConfidence that the workflow is reusable.
domainstringDomain, e.g. 'play.google.com'.
lastVerifiedstringVerification date, default today.
notesstringShort extra context for future agents.
outcomestringWhat succeeded or what state was reached.
pitfallsarrayThings that were wrong, surprising, changed, or easy to miss.
selectorsarrayDurable UI cues: visible labels, section names, field names. Avoid transient refs.
sitestringHuman site name, e.g. 'Google Play Console'.
supersedesarrayWorkflow memory ids this record replaces because they are stale or incomplete.
tagsarraySearch tags such as 'android', 'play-store', 'release'.
titlestringPage title where the workflow starts or was verified.
urlstringUseful starting URL if stable.

browser_workflow_forget

Remove a stale, sensitive, or incorrect workflow memory by id. This appends a local tombstone; normal recall will stop returning that memory.

ParameterTypeDescription
id *stringWorkflow memory id, e.g. wm_20260604123000_ab12cd34.
reasonstringOptional short reason for the deletion.

browser_native_status

Report which OS-level input capabilities are available (trusted keystrokes, native-dialog control, raw clicks) and any setup needed. Check this before relying on the browser_os_* / browser_native_dialog tools.

browser_os_type

Type text using REAL OS keystrokes into whatever currently has focus. Use only when in-page typing fails because the element checks event.isTrusted (some payment fields, editors, games). Focus the field first (e.g. browser_click), then call this. macOS only; needs Accessibility permission.

ParameterTypeDescription
text *string
modifiersarray

browser_os_key

Press a REAL OS key (Enter, Tab, Escape, ArrowDown, F1-F8, or a single char), optionally with modifiers. For native UI and isTrusted-checking pages. macOS only.

ParameterTypeDescription
key *string
modifiersarray

browser_os_click

Click at absolute screen coordinates with a REAL OS mouse event. Prefer browser_click; use this only for trusted clicks or native chrome. macOS only; raw clicks need `brew install cliclick`.

ParameterTypeDescription
x *number
y *number
buttonstring
countnumber2 = double-click.

browser_os_click_ref

Click a page element by ref with a REAL, OS-trusted mouse event (for elements that ignore synthetic clicks). Computes the element's on-screen position via the connected browser, raises its window, then clicks. On Firefox coordinates are exact; on Chrome they are approximate (refused unless allowApproximate is set) and iframe elements are not supported. macOS only; needs cliclick + Accessibility permission.

ParameterTypeDescription
ref *string
allowApproximatebooleanChrome only: opt in to clicking at APPROXIMATE screen coordinates (no exact viewport-origin API exists there). Only set this after visually confirming the window is a normal browser window (no docked…
buttonstring
countnumber

browser_native_dialog

Inspect or operate a NATIVE browser dialog that no extension can touch — the file picker, print dialog, basic-auth popup, or 'Leave page?'. action='list' shows the dialog's buttons; 'click_button' presses one by name (e.g. 'Open', 'Save', 'Don't Save'); 'set_text' types into the focused dialog field. macOS only; needs Accessibility permission.

ParameterTypeDescription
actionstring
buttonstringButton label for click_button.
processstringProcess name (default firefox).
textstringText for set_text.

browser_focus_browser

Bring the connected browser (Firefox or Chrome, per the bridge connection) to the foreground so OS-level input lands in it. macOS only.

browser_request_human_help

Hand control to the human for something automation must not or cannot do — CAPTCHAs, anti-bot 'verify you're human' walls, 2FA approvals, or a deliberate judgment call. Sends a desktop notification and returns a message you should relay to the user, then STOP and wait for them to act before continuing. Do not attempt to bypass CAPTCHAs yourself.

ParameterTypeDescription
message *stringWhat you need the human to do, e.g. 'Solve the CAPTCHA on the login page, then tell me to continue.'
reasonstringShort category, e.g. 'captcha', '2fa', 'permission'.

browser_snapshot

Capture an accessibility/DOM snapshot of the active Firefox tab as a structured tree. Each interactive element gets a stable [ref=eN] handle. USE THIS to understand the page before acting, and re-run it after the page changes — refs become stale after navigation or DOM updates. If workflow-memory hints appear, call browser_workflow_recall before continuing.

ParameterTypeDescription
maxNodesnumberMax nodes to include (default 1500).

browser_navigate

Navigate the active tab to a URL and wait for it to finish loading.

ParameterTypeDescription
url *stringFull URL including https://
timeoutnumber

browser_back

Go back in the active tab's history.

browser_forward

Go forward in the active tab's history.

browser_reload

Reload the active tab.

browser_click

Click an element by its ref from the latest snapshot. Supports right/middle button, double-click, and modifier keys (ctrl/shift/alt/meta) for context menus, multi-select, and open-in-new-tab.

ParameterTypeDescription
ref *stringElement ref, e.g. e12, from browser_snapshot.
buttonstringMouse button (default left). 'right' opens context menus.
countnumberClick count; 2 = double-click.
modifiersarrayModifier keys held during the click.

browser_drag

Drag one element onto another (kanban cards, sortable lists, file tiles, sliders). Fires both HTML5 drag-and-drop and a pointer-drag sequence so native and JS-library targets both respond.

ParameterTypeDescription
fromRef *stringRef of the element to drag.
toRef *stringRef of the drop target.

browser_type

Focus a text field by ref and type text into it. Set submit=true to press Enter afterward (e.g. to submit a search).

ParameterTypeDescription
ref *string
text *string
clearbooleanClear the field first (default true).
submitbooleanPress Enter after typing.

browser_fill_form

Fill multiple fields in one call. Pass fields as an array of {ref, text}. Faster and more reliable than many browser_type calls for forms.

ParameterTypeDescription
fields *array

browser_fill_secret

Fill a username or password field from the server-side credential broker. Pass only a secret alias; secret values are never accepted as tool input or returned.

ParameterTypeDescription
ref *stringElement ref, e.g. e12, from browser_snapshot.
secret *stringSecret alias from the server-side secrets vault.
fieldstringWhich secret field to fill (default password).

browser_login

Atomically fill username/password fields from a server-side secret alias and submit the login form. Pass only refs and the secret alias; secret values are never accepted as tool input or returned.

ParameterTypeDescription
password_ref *stringPassword field ref, e.g. e12, from browser_snapshot.
secret *stringSecret alias from the server-side secrets vault.
submit_refstringSubmit button ref. If omitted, the password field's enclosing form is submitted.
username_refstringUsername field ref. Filled only when provided and the secret has a username.

browser_select

Choose an option in a <select> dropdown by visible label or value.

ParameterTypeDescription
ref *string
value *string

browser_hover

Hover the pointer over an element by ref.

ParameterTypeDescription
ref *string

browser_press_key

Press a key (Enter, Tab, Escape, ArrowDown, etc.). Optionally target an element by ref; otherwise the focused element receives it.

ParameterTypeDescription
key *string
refstring

browser_clipboard_read

Read text from the system clipboard. Use after the page put something on the clipboard (e.g. a 'Copy' button) or to move data between pages and apps.

browser_clipboard_write

Write text to the system clipboard.

ParameterTypeDescription
text *string

browser_paste

Paste into an element by ref as a real paste event — rich editors (Google Docs, Notion, contenteditable) handle this better than typing. Pastes the given text, or the current clipboard contents when text is omitted.

ParameterTypeDescription
ref *string
textstringText to paste. Omit to paste the current clipboard contents.

browser_clipboard_read_image

Read an image from the system clipboard (e.g. after a 'Copy image' action) and return it as a PNG/JPEG. Errors if the clipboard holds no image.

browser_clipboard_write_image

Put a local image file onto the system clipboard so it can be pasted into a page.

ParameterTypeDescription
path *stringAbsolute path to a local image file.

browser_set_dialog_policy

Set how native JS dialogs are auto-answered so they never block the agent. accept=true confirms (default), promptText sets what prompt() returns, suppress=true neutralizes 'Leave page?' beforeunload guards. Applies to the current page; re-set after navigation if needed.

ParameterTypeDescription
acceptbooleanAnswer confirm()/prompt() affirmatively (default true).
promptTextstringValue returned from prompt() when accepted.
suppressbooleanNeutralize beforeunload 'leave page?' guards (default true).

browser_dialogs

List native JS dialogs (alert/confirm/prompt) the page tried to open and how they were auto-answered. Use this to see if the page asked something.

browser_mock_geolocation

Make navigator.geolocation return a fixed position (so location-gated tasks proceed without the native permission prompt). Pass clear=true to stop mocking. Applies to the current page; re-set after navigation.

ParameterTypeDescription
accuracynumberAccuracy in meters (default 20).
clearbooleanStop mocking and restore real geolocation.
latitudenumber
longitudenumber

browser_download

Download a file to disk WITHOUT the OS save dialog, and return its local path so you can read it. Use for PDFs, exports, attachments — the file lands in the browser's downloads folder.

ParameterTypeDescription
url *stringFull URL of the file to download.
filenamestringOptional filename (relative to the downloads folder).
timeoutnumberMax ms to wait for completion (default 60000).

browser_downloads_list

List recent downloads with their on-disk paths and state.

ParameterTypeDescription
limitnumber

browser_save_pdf

Save the current tab as a PDF to the downloads folder (dialog-free). Useful to capture a rendered page. If your Firefox build still shows a save dialog, use browser_native_dialog to confirm it.

ParameterTypeDescription
filenamestringOptional output filename.

browser_network_log

Inspect recent network requests (method, URL, status, type, errors) the browser made. Use to diagnose why a button 'did nothing', find an API endpoint, or confirm a request succeeded.

ParameterTypeDescription
filterstringOnly requests whose URL contains this substring.
limitnumberMax requests to return (default 50).
onlyErrorsbooleanOnly failed requests (network error or status >= 400).
typestringResource type, e.g. xmlhttprequest, script, document, image.

browser_http_auth

Arm answers for HTTP basic-auth prompts (the native username/password dialog) from a server-side secret alias, scoped to that secret's domains. Pass only the alias; the credential value is never accepted as input or returned. Call before navigating to the protected URL.

ParameterTypeDescription
secret *stringSecret alias from the server-side secrets vault.
oncebooleanAnswer only the next auth challenge, then disarm.

browser_clear_http_auth

Disarm previously-armed HTTP basic-auth answers (all domains, or specific ones).

ParameterTypeDescription
domainsarray

browser_upload_file

Attach local file(s) to the page WITHOUT opening the OS file picker (the picker cannot be automated — never click elements that open it). Pass the ref of a file input (hidden ones appear in snapshots as 'file-input ... [hidden]'), or of an upload button/dropzone near it, plus absolute local file paths. Sets the input's files directly, or simulates a drag-and-drop when no file input is found.

ParameterTypeDescription
paths *arrayAbsolute paths of local files to attach.
ref *stringRef of the file input, upload button, or dropzone.
modestringauto (default): find and fill the file input. drop: force a drag-and-drop onto the ref'd element (for dropzones).

browser_scroll

Scroll the page or a specific scrollable container. Pass a ref to scroll that container (inner panes, virtualized/infinite lists); omit it to scroll the window. Use to='bottom' to jump to the end (e.g. trigger infinite-scroll loading).

ParameterTypeDescription
amountnumber
directionstring
refstringScroll this container (or, with no direction/to, just reveal it).
tostringJump to the top or bottom of the target.

browser_read_text

Get the visible text of the page (or of one element by ref). Use for reading article/content; use browser_snapshot for interactive structure.

ParameterTypeDescription
maxCharsnumber
refstring

browser_get_value

Get the current value/text of a field or element by ref.

ParameterTypeDescription
ref *string

browser_wait

Wait a fixed number of milliseconds (use sparingly).

ParameterTypeDescription
ms *number

browser_wait_for_text

Wait until the given text appears anywhere on the page (or timeout).

ParameterTypeDescription
text *string
timeoutnumber

browser_list_tabs

List all open tabs with their ids, urls, and titles.

browser_select_tab

Make a tab active by id (the agent acts on the active tab).

ParameterTypeDescription
tabId *number

browser_new_tab

Open a new tab, optionally at a URL, and make it active.

ParameterTypeDescription
urlstring

browser_close_tab

Close a tab by id (defaults to the active tab).

ParameterTypeDescription
tabIdnumber

browser_status

Check the bridge connection and the current active tab. If the active tab has workflow memories, this returns short hints.

browser_info

Get the active tab's url, title, load state, scroll position, and short workflow-memory hints when available.

browser_screenshot

Capture a PNG screenshot of the visible part of the active tab. Use only when the snapshot is insufficient (e.g. canvas, charts, visual layout).

browser_eval

Run JavaScript in the page and return the result. Disabled under hardened mode, which is the default; the operator enables it by setting UBA_STRICT_SECRETS=0 in the server environment. On Firefox the code runs in the content-script sandbox; on Chrome it runs in the page's own realm, where the page can observe it and its CSP applies. Use only when no dedicated tool fits.

ParameterTypeDescription
code *stringJS body; use `return value;` to return data.