browsermcp

v0.0.44
@jackwener/browsermcp Checked 3 days ago Published 4 days ago

Chrome-backed MCP browser service with optional site adapters.

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

session_finish

Finish the task: unmarked agent tabs close, user tabs and deliverables release, handoff tabs retain ownership and usable handles. Returns closed/released/retained/failed separately.

ParameterTypeDescription
keeparray

tabs_list

List session and unclaimed tabs without claiming, loading or focusing. Continue with cursor alone. Use tabId directly; claim an unclaimed backendId before operating.

ParameterTypeDescription
cursorstring
limitinteger
querystring
scopestring

claim_tab

Acquire an existing user tab. Exactly one selector: backendId, active:true, or unique URL/title. Does not create a tab.

ParameterTypeDescription
activeboolean
backendIdinteger
expectedTitlestring
expectedUrlstring
titlestring
urlstring

open_tab

Explicitly create a new tab. Prefer navigate_tab to reuse an existing tab.

ParameterTypeDescription
urlstring

navigate_tab

Navigate the specified session tab in place. Never creates a tab, including on failure. Reuse its tabId for subsequent operations. For SPA readiness, pass ready (the same conditions as tab.expect) and timeoutMs; DOM settling alone does not guarantee loaded content.

ParameterTypeDescription
tabId *stringSession page handle returned by claim_tab, open_tab or tabs_list. Never a numeric backendId.
url *string
readyobject
settleMsinteger
timeoutMsinteger
waitUntilstring

close_tab

Close exactly one session-owned tab. For a user tab, claim it first. Closing is different from releasing control.

ParameterTypeDescription
tabId *stringSession page handle returned by claim_tab, open_tab or tabs_list. Never a numeric backendId.

tabs_close

Close explicit session tab handles; returns an outcome for each tab, including partial failure. Never targets the current tab implicitly.

ParameterTypeDescription
tabIds *array

release_tab

Leave the tab open and relinquish session control. Its handle becomes unusable until claimed again.

ParameterTypeDescription
tabId *stringSession page handle returned by claim_tab, open_tab or tabs_list. Never a numeric backendId.

tab_observe

Observe a session tab. Continue captured state using options.cursor. No implicit tab selection.

ParameterTypeDescription
tabId *stringSession page handle returned by claim_tab, open_tab or tabs_list. Never a numeric backendId.
optionsobject

tab_act

Perform one action on an explicit session tab. Input delivery does not prove task completion; observe or verify the resulting page before deciding the next action.

doctor Doctor

Runtime status: browser connection, extension features and protocol warning (if versions differ), site/command counts, sessions. A protocol mismatch blocks browser commands until the host and extension are updated.

site_run Run a site adapter

Execute an existing adapter using this session’s browser context. No enable or setup step is required. args must match the args list from sites_search. Invalid args return invalid_args with details.expected. Valid commands execute directly, including writes.

ParameterTypeDescription
command *string
site *string
argsobject

docs_get Read a doc

No name: compact REPL quickstart and available topics. Pass name for a topic; use member with api-reference for one class or method, e.g. Tab.act or Tab.network.

ParameterTypeDescription
memberstring
namestring

js Browser JavaScript REPL

Primary browser workspace. Persistent Node REPL: variables, functions, classes and top-level await; use let for reusable bindings. Pre-bound browser, sites, tools, recon. Discover and claim an existing tab first; use helper.navigate_tab({tabId, url}) to reuse it. Only open_tab or browser.tabs.new explicitly creates a tab. helper exposes the same typed commands as MCP, including close_tab. observe returns a compact action map, not HTML; follow nextCursor with tab.observe({cursor}) for remaining captured pages, or scope with {target:{selector:"#main"}}. tab.read() returns an object: use result.t…

ParameterTypeDescription
code *string
maxCharsintegerresult text budget; retain large data in a variable and return only relevant parts
timeoutMsinteger

js_reset Reset JavaScript session

Stop JavaScript, clear bindings and close explicit subscriptions; browser tabs stay open. pendingCalls reports already dispatched API operations that may still complete. Wait until doctor shows javascript.pendingCalls:0 before more js; inspect the page before retrying actions.