BrowserMesh

v0.2.1
io.github.scrollDynasty/browsermesh Checked 4 days ago Published 3 months ago

Isolated multi-session Chromium runtime for external MCP clients over stdio.

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

browser_runtime_info Inspect BrowserMesh runtime

Report bounded, read-only BrowserMesh version, launch state, effective configuration, and session counts without launching Chromium. Use this to diagnose setup and capacity safely; it never returns paths, launch arguments, environment values, browser state, or raw errors.

browser_session_create Create isolated browser session

Create a new isolated browser session with its own cookies, storage, pages, and optional validated contextSettings (viewport, scale, locale, timezone, color scheme, reduced motion, user agent, geolocation, and explicit origin-scoped geolocation grants). Only the geolocation permission is supported; each grant must name one absolute HTTP(S) origin, never a wildcard. Create a separate session whenever a task involves a different user, account, role, authentication state, device profile, accessibility preference, permission profile, or independent parallel workflow; never reuse one session for id…

ParameterTypeDescription
contextSettingsobject
metadataobject
namestring
stateIdstring

browser_session_list List browser sessions

List every browser session with its explicit sessionId, lifecycle status, name, and neutral workflow metadata. Use this to recover the correct session for each role/account; there is no global active session.

browser_session_get Get browser session

Inspect one explicitly addressed browser session. Session names and metadata are workflow labels, not internal AI agents or owners.

ParameterTypeDescription
sessionId *string

browser_session_close Close browser session

Close one explicitly addressed session and release all of its pages and isolated browser context. Close each role/account session when its workflow is complete.

ParameterTypeDescription
sessionId *string

browser_page_create Create browser page

Create an additional page inside one explicitly addressed session. Use it for another tab that must share that session's cookies and storage; use a separate session instead when identity or authentication must be isolated.

ParameterTypeDescription
sessionId *string

browser_page_list List browser pages

List pages belonging only to the addressed session. Session creation already returns the initial pageId; use this tool to rediscover or inspect all pages in that session.

ParameterTypeDescription
sessionId *string

browser_page_close Close browser page

Close one explicitly addressed page in its owning session. Supply both IDs because BrowserMesh has no global current session or page.

ParameterTypeDescription
pageId *string
sessionId *string

browser_navigate Navigate browser page

Navigate one explicitly addressed page to an absolute HTTP(S) URL. Keep using the sessionId/pageId pair for the intended account or role; navigation never changes a global active page.

ParameterTypeDescription
pageId *string
sessionId *string
url *string
timeoutMsinteger

browser_back Navigate browser page back

Navigate backward in the history of one explicitly addressed page without affecting pages or sessions used by other roles.

ParameterTypeDescription
pageId *string
sessionId *string
timeoutMsinteger

browser_forward Navigate browser page forward

Navigate forward in the history of one explicitly addressed page without affecting other isolated sessions.

ParameterTypeDescription
pageId *string
sessionId *string
timeoutMsinteger

browser_reload Reload browser page

Reload one explicitly addressed page in its existing isolated session and authentication state.

ParameterTypeDescription
pageId *string
sessionId *string
timeoutMsinteger

browser_get_url Get browser page URL

Read the current URL of one explicitly addressed page. Use the IDs returned for the intended session; there is no global current page.

ParameterTypeDescription
pageId *string
sessionId *string
timeoutMsinteger

browser_get_title Get browser page title

Read the title of one explicitly addressed page in its owning isolated session.

ParameterTypeDescription
pageId *string
sessionId *string
timeoutMsinteger

browser_snapshot Get accessibility snapshot

Inspect a bounded accessibility-oriented snapshot of one explicitly addressed page, optionally scoped by a locator including a bounded semantic iframe chain. BrowserMesh rejects oversized DOM sources before native ARIA serialization. Use interactiveOnly to retain interactive nodes with ancestor context and maxChildren to limit every node after filtering. A nextCursor continues the immutable captured serialization without rereading a changed DOM; cursors are page-scoped, expire after 30 seconds, and become stale on navigation or close. Semantic scope, depth, boxes, character/byte bounds, omissi…

ParameterTypeDescription
pageId *string
sessionId *string
cursorstring
includeBoundingBoxesboolean
includeRefsboolean
interactiveOnlyboolean
maxBytesinteger
maxCharsinteger
maxChildreninteger
maxDepthinteger
maxRefsinteger
scope
timeoutMsinteger

browser_visible_text Get visible page text

Read visible text from a semantic or CSS locator on one explicitly addressed page. A locator may select the top document or a bounded outer-to-inner semantic iframe chain; the lookup remains confined to that page and session.

ParameterTypeDescription
locator *
pageId *string
sessionId *string
timeoutMsinteger

browser_observe Read page observations

Read bounded observations recorded for one explicitly addressed page. Choose source: 'console' for console events, 'pageError' for uncaught page errors, 'network' for correlated request/response metadata, or 'requestFailed' for transport-level failures. HTTP error responses such as 500 are 'network' response events, not 'requestFailed'. Console and page-error results are metadata-only unless includeText=true, which the network sources reject because they carry no text; exposed text is best-effort redacted and bounded, and console argument objects and raw stacks are never captured. Network URLs…

ParameterTypeDescription
pageId *string
sessionId *string
source *string
includeTextboolean
limitinteger
sinceEventIdstring
timeoutMsinteger

browser_click Click page element

Click exactly one semantic/CSS locator or short-lived snapshot ref on one explicitly addressed page. A locator may select the top document or a bounded outer-to-inner semantic iframe chain. Role locator names match exactly by default and every iframe-chain selector must resolve exactly; ambiguous locators return LOCATOR_AMBIGUOUS and stale or cross-page refs return STALE_ELEMENT_REFERENCE. Prefer semantic locators for durable workflows.

ParameterTypeDescription
pageId *string
sessionId *string
locator
refstring
timeoutMsinteger

browser_double_click Double-click page element

Double-click a semantic or CSS locator on one explicitly addressed page. Use this only when the application assigns distinct double-click behavior; the action is serialized with all browser work in that session and an ambiguous locator returns LOCATOR_AMBIGUOUS.

ParameterTypeDescription
pageId *string
sessionId *string
locator
refstring
timeoutMsinteger

browser_hover Hover over page element

Move the pointer over a semantic or CSS locator on one explicitly addressed page. Use this to reveal hover-driven controls or state before inspecting or interacting; BrowserMesh preserves same-session accepted order.

ParameterTypeDescription
pageId *string
sessionId *string
locator
refstring
timeoutMsinteger

browser_focus Focus page element

Focus a semantic or CSS locator on one explicitly addressed page without entering a value. Use this for focus-driven UI state or before a separate key action; the locator remains scoped to the supplied sessionId and pageId.

ParameterTypeDescription
pageId *string
sessionId *string
locator
refstring
timeoutMsinteger

browser_check Check page control

Ensure a checkbox or radio located semantically or by CSS is checked on one explicitly addressed page. The operation is idempotent, bounded by timeoutMs, and isolated to the supplied session.

ParameterTypeDescription
pageId *string
sessionId *string
locator
refstring
timeoutMsinteger

browser_uncheck Uncheck page control

Ensure a checkbox located semantically or by CSS is unchecked on one explicitly addressed page. The operation is idempotent, bounded by timeoutMs, and isolated to the supplied session.

ParameterTypeDescription
pageId *string
sessionId *string
locator
refstring
timeoutMsinteger

browser_scroll_into_view Scroll page element into view

Scroll one semantic or CSS locator into the viewport of an explicitly addressed page. Use this before inspection or interaction when an off-screen target must become visible; it never accepts arbitrary JavaScript or coordinates.

ParameterTypeDescription
pageId *string
sessionId *string
locator
refstring
timeoutMsinteger

browser_scroll Scroll browser page

Scroll an explicitly addressed page by bounded integer pixel deltas. Use deltaX for horizontal and deltaY for vertical movement; this typed operation exposes no arbitrary JavaScript and remains serialized within the session.

ParameterTypeDescription
deltaX *integer
deltaY *integer
pageId *string
sessionId *string
timeoutMsinteger

browser_drag_and_drop Drag and drop page element

Drag one semantic or CSS-located element onto another on one explicitly addressed page. Source and target are resolved in the same page and session, with bounded timeout and strict ambiguity errors.

ParameterTypeDescription
pageId *string
sessionId *string
source *
target *
timeoutMsinteger

browser_fill Fill page field

Fill a form field located on one explicitly addressed page. The value is entered only in that session; use separate sessions for different identities.

ParameterTypeDescription
pageId *string
sessionId *string
value *string
locator
refstring
timeoutMsinteger

browser_press Press key on page element

Press a key on a locator within one explicitly addressed page, preserving deterministic ordering with other operations in that session. A missing or unsuitable element returns OPERATION_TIMEOUT within timeoutMs (10 seconds by default) without closing MCP or browser sessions.

ParameterTypeDescription
key *string
pageId *string
sessionId *string
locator
refstring
timeoutMsinteger

browser_select_option Select page option

Select an option on one explicitly addressed page using a semantic or CSS locator. A missing or unsuitable select returns OPERATION_TIMEOUT within timeoutMs (10 seconds by default), and the supplied session plus all other sessions remain usable.

ParameterTypeDescription
pageId *string
sessionId *string
value *string
locator
refstring
timeoutMsinteger

browser_screenshot Capture page screenshot

Capture a bounded in-memory PNG screenshot of one explicitly addressed page, either as the viewport/full page or one semantic element optionally reached through a bounded iframe chain. Full-page and element capture use an immutable measured CSS-pixel clip plus encoded-byte validation. BrowserMesh returns image content and does not write to a caller-controlled path or inspect another session.

ParameterTypeDescription
pageId *string
sessionId *string
capture
timeoutMsinteger

browser_wait Wait for browser condition

Wait for one deterministic passive condition on an explicitly addressed page: an exact/safe-glob URL, domcontentloaded/load state, locator state (optionally through a bounded semantic iframe chain), or case-sensitive top-document text presence/absence. The wait occupies that session queue, is bounded by timeoutMs, and must not depend on a later action queued in the same session; use browser_action_and_wait for action-triggered events.

ParameterTypeDescription
condition *
pageId *string
sessionId *string
timeoutMsinteger

browser_action_and_wait Perform browser action and wait

Atomically register a navigation, response, popup, or dialog waiter first, then click or press on the explicitly addressed page under one shared deadline; the action locator may use a bounded semantic iframe chain. Popup pages receive a new BrowserMesh pageId in the same session with isDefault=false and are closed if the page limit is exceeded. Dialogs must be handled atomically because they cannot be inspected later; specify the expected type and accept/dismiss action. Returned dialog text is bounded. Use this instead of parallel same-session calls when an action triggers the event.

ParameterTypeDescription
action *
pageId *string
sessionId *string
wait *
timeoutMsinteger

browser_state_save Save browser state

Save cookies and supported storage from one explicitly addressed session under a safe logical stateId. Use this only when a later new isolated session should restore that authentication state.

ParameterTypeDescription
sessionId *string
stateId *string

browser_state_list List saved browser states

List logical saved-state IDs available for optional restoration when creating a new isolated session; state contents and secrets are not returned.

browser_state_remove Remove saved browser state

Delete persisted browser state by its safe logical stateId when it should no longer be restorable. This does not close or alter currently live sessions.

ParameterTypeDescription
stateId *string