opencli-mcp
v0.0.31Chrome-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.
doctor Doctor
Runtime status: browser connection, extension features and protocol warning (if versions differ), site/command counts, sessions. A protocol warning does not block browser commands.
session_finalize Finalize session tabs
End-of-task cleanup. Agent-created tabs not listed in keep are closed; deliverable tabs leave the group and stay open; handoff tabs stay in the group for a later turn. Claimed user tabs are only released.
| Parameter | Type | Description |
|---|---|---|
keep | array |
sites_search Find site capabilities
No query: list available sites with sample commands. With a task, site, or domain as query: find matching commands. Results include args[{name,type,required,help,default,choices}] for site_run. Do not invent parameters.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
query | string | task, site, or domain; omit to browse available sites |
site_run Run a site command
Run one site command. args must match the args list from sites_search. Invalid args return invalid_args with details.expected. Valid commands execute directly, including writes.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
site * | string | |
args | object |
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.
| Parameter | Type | Description |
|---|---|---|
member | string | |
name | string |
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. Start: let tab = await browser.tabs.new("https://example.com"); await tab.observe(). observe returns a compact action map, not HTML; follow nextCursor with tab.observe({cursor}) for remaining captured pages, or scope with {target:{selector:"#main"}}. Read document text with tab.read(). Reuse tab across calls; await tab.act({action:"click", target:{ref:"..."}}) with an observed ref, then observe. Batch determined steps and ret…
| Parameter | Type | Description |
|---|---|---|
code * | string | |
maxChars | integer | result text budget; retain large data in a variable and return only relevant parts |
timeoutMs | integer |
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.