Skip to main content
Glama

browserd

継続的に記録するChromiumとプログラム可能なDevToolsを備え、MCP経由でAIに公開

「LLMに駆動されるPlaywright」ではありません。ブラウザデーモンとして、目にしたすべてを記録するので、エージェントは、聞こうと思った前に発生したトラフィックについて質問できます。

Node TypeScript MCP Tools Tests


これが実際にやっていること

ほとんどのブラウザMCPサーバーはPlaywrightをラップし、モデルに要素をクリックさせるだけです。しかし、それは開発者がブラウザを開いて行うことのほんの一部にすぎません。

browserd は、エージェントが背後で見守る中、あなた自身が使える本物のヘッド付きChromiumを実行します。永続的なCDP接続を保持し、ネットワーク、コンソール、例外、ナビゲーションを継続的に記録してSQLiteに保存します。モデルが最終的に質問すると、ブラウザではなくデータベースをクエリします。

   AI ──MCP──> browserd ──CDP──> Chromium (headed, yours to use)
                  │
                  ├── network recorder ──┐
                  ├── console recorder ──┼──> SQLite + content-addressed blobs
                  ├── page recorder ─────┤
                  └── target manager ────┘        (bodies, traces, heap snapshots)

この違いは重要です。通常のブラウザ自動化MCPに「なぜチェックアウトは失敗したのか?」と尋ねても、何も返ってきません。リクエストは消えてしまっているからです。browserd に尋ねれば、ペイロード、レスポンスボディ、コンソールエラー、スタックトレース、そして正確なソース行が得られます。


Related MCP server: browser-for-ai

エージェントができること

表示

スクリーンショット(ビューポート / 全ページ / 要素)を実際の画像ブロックとして返します。安定したeNN参照を持つアクセシビリティスナップショット — クリック対象を決める際にビジョンより安価で信頼性が高いです。

操作

クリック、ホバー、タイプ、キーコード、スクロール、選択、アップロード、ダイアログ処理。デバイスエミュレーション下ではタッチディスパッチにフォールバックします。

ネットワーク

すべてのリクエストを、すべてのヘッダー(実際にワイヤー上を流れたものも含む)、リクエストペイロード、レスポンスボディ、イニシエーター、タイミング、リダイレクトチェーン、WebSocketフレームとともに記録します。記録は最初のページスクリプトが実行される前に準備されます。

コンソール

console.* の出力とスタック付きの未キャッチ例外を、ナビゲーションをまたいで保持します。さらに、DevToolsコマンドラインAPI($、$$、$x)を使ったRuntime.evaluateも利用できます。

DOM / CSS

構造のアウトライン、DevToolsが表示する完全なカスケード、そしてcss.explain_visibility — これはスタイルシートを渡す代わりに、要素を隠したルールを特定します。

デバッガ

条件付きの実際のブレークポイント、ステッピング、コールフレーム、スコープチェーン、フレーム上での評価。一時停止中のスタックからローカル変数を読み取れます。

ストレージ

localStorage、sessionStorage、クッキー、IndexedDB(読み取り および 書き込み)、Cache Storage、クォータ。

プロファイリング

CPUサンプリング、JSカバレッジ、ディスクへのトレースストリーミング、リーク探索のためのコンストラクターレベルの差分を備えたヒープスナップショット、プロセス/CPU情報。

シミュレーション

制御されたクロック、タイムゾーン、CPUスロットリング、ネットワークコンディション、デバイスエミュレーション、位置情報、視覚障害、フォールトインジェクション。

人々が予想しない部分

タイムトラベル。 time.run("30m") は時計を進め、期限が来たすべてのタイマーを発火させます — 60秒間隔は即座に30回発火します。time.jump("30m") は各タイマーを1回だけ発火させて前方に跳びます。「ノートPCを3時間閉じていた」ケースです。異なるバグのクラスには、異なるツールがあります。

time.install({ time: "2030-01-01T00:00:00Z" })   # page now believes it is 2030
time.run({ duration: "30m" })                     # 30 interval ticks, no waiting
time.freeze()                                     # pin it and inspect

フォールトインジェクション。 「保存に20秒かかったらUIはどうなる?」と尋ねて、実際に確かめます。

fault.delay({ url: "**/api/save", delay: "20s" })
fault.replace_response({ url: "**/api/user", status: 500, body: {...} })
fault.drop_next({ url: "**/api/payment", count: 1 })

リークハンティング。 2つのヒープスナップショットと差分を、切り離されたDOMノードを指摘してコンストラクターごとに報告します — 古典的なリークのシグネチャです。

ヒューマン ↔ AI ハンドオフ。 inspector.pick は実際のDevTools要素ピッカーを起動し、あなたが壊れたものをクリックします。エージェントはノードハンドルを読み返します。page.highlight はその逆方向です。


インストール

Node ≥ 20.11 が必要です。Chromiumは、Playwrightのバンドルビルドが存在する場合はそこから解決されます(ブランド版Chrome 137+は--load-extensionを廃止しましたが、バンドルビルドにはまだあります)。それ以外の場合はシステムインストールから解決されます。

git clone <your-remote> browserd && cd browserd
npm install
npm run build

MCPクライアントに登録する

node scripts/install-mcp.mjs

これはClaude Desktop、Claude Code、Codex CLI、Cursor、Windsurf、VS Codeを検出し、既存の設定にマージします(まず.bakを書き込みます)。他のサーバーを上書きすることはありません。

node scripts/install-mcp.mjs --print            # show the JSON, change nothing
node scripts/install-mcp.mjs --client codex     # just one client
node scripts/install-mcp.mjs --headless         # auto-launch headless
node scripts/install-mcp.mjs --http --port 7331 # register the HTTP endpoint instead

対応クライアント: Claude Desktop、Claude Code、Codex CLI、Cursor、Windsurf、VS Code。CodexはJSONではなく[mcp_servers.browserd] TOMLセクションを使用します。インストーラーはそのファイルを外科的に編集するため、コメントや他の設定は残ります。

次に、すべてのクライアントが実際に起動できることを確認します:

npm run verify-mcp
  OK    Claude Code      174 tools advertised
  OK    Codex CLI        174 tools advertised
  OK    VS Code          174 tools advertised

これは実際の設定ファイルを読み取り、指定された内容でMCPハンドシェイクを完了します。そのため、古いパスや手動編集されたエントリは、動作を仮定するのではなく検出されます。

または手動で追加します:

{
  "mcpServers": {
    "browserd": {
      "command": "node",
      "args": ["/absolute/path/to/browserd/dist/cli.js"]
    }
  }
}

クライアントを再起動します。ブラウザを開いておく必要はありません — ブラウザを必要とする最初のツール呼び出しが起動します。

試す

エージェントに尋ねてみてください:

news.ycombinator.comを開いて、スクリーンショットを見せて、500ms以上かかったすべてのリクエストと、 最も遅かったものが何を返したか教えてください。

または、完全なデモはこちら:

localhost:3000の自分のアプリに行って、Checkoutをクリックして、なぜ失敗するか教えてください。

失敗のスクリーンショットを撮り、コンソールエラーを読み取り、失敗したリクエストを見つけ、ペイロードと400レスポンスボディを表示し、読み込まれたソースから呼び出し関数をgrepして、ファイルと行を提示します。


デーモンを直接実行する

node dist/cli.js                 # MCP over stdio (default)
node dist/cli.js --http          # Streamable HTTP on 127.0.0.1:7331/mcp
node dist/cli.js --tools         # print the tool surface and exit
node dist/cli.js --help

Flag

意味

--port N

HTTPポート(デフォルト7331; 0は空きポートを選ぶ)

--host HOST

HTTPバインドアドレス(デフォルト127.0.0.1 — 公開しないでください)

--profile NAME

自動起動ブラウザで使用されるプロファイル

--headless

ヘッドレスで自動起動。デフォルトは、あなたも使える表示可能なウィンドウ

--no-auto-launch

暗黙的に起動しない。browser.launchを必須にする

--log-level LEVEL

trace | debug | info | warn | error

環境変数: AGENTBROWSER_HOME, AGENTBROWSER_PORT, AGENTBROWSER_LOG_LEVEL, AGENTBROWSER_HEADLESS.

HTTPモードはループバックのみにバインドし、Originを検証します。このエンドポイントは完全なブラウザ制御であり、オープンウェブ上のページが到達できないようにする必要があります。


2つの設計ルール

1. まず記録し、後でクエリする

Chromiumがイベントをプッシュし、デーモンがそれを永続化します。事前に準備する必要はなく、モデルが考えている間もイベントを見逃しません。履歴はナビゲーション、タブを閉じる、デーモンの再起動を超えて存続します。

これは重要な設計です。コレクターはドメインを有効にする前にCDPイベントにサブスクライブし、ターゲットマネージャーはインストルメンテーションが有効になるまでwaitForDebuggerOnStartで新しいターゲットを保持します。これにより、「リクエストを見逃さなかった」ということが可能性ではなく事実になります。

2. 大きなペイロードはコンテキストに入らない

200MBのレスポンスは、コンテンツアドレス可能なblobとして保存され、アーティファクトハンドルとして返されます。エージェントはartifact.search、artifact.read_lines、またはartifact.json_query(JSONPathのサブセット)でそれを読み取ります。トレース、ヒープスナップショット、DOMダンプ、コンソールエクスポートも同様です。

ツールは設計上、クエリファーストです。dom.get_htmlの前にdom.summary、network.list_requestsの前にnetwork.summarize、js.get_sourceの前にjs.search_sourceを使用します。


1つのブラウザ上の人間とAI

ブラウザはヘッド付きで、あなたのものです。browser.set_control_modeが調停します:

モード

意味

observe

AIはすべてを読み取り、何も変更しない

shared

両方が操作する(デフォルト)

agent

AIが入力を所有する

paused

AIは停止中。読み取りは引き続き機能する

すべての変更系ツールはこれをチェックします — 生のcdp.sendエスケープハッチも含みます。


ツールサーフェス

174のツール。node dist/cli.js --toolsで全リストが表示されます。

browser.*      list, launch, connect, status, list_targets, set_control_mode, close
page.*         navigate, screenshot, snapshot, click, type, press, scroll, extract_text,
               wait_for, highlight, dialogs, viewport, frames, tabs
dom.*          summary, query, inspect, get_html, set_html, set_attribute, remove, export
css.*          computed, matched_rules, set_style, stylesheets, explain_visibility
js.*           evaluate, list_scripts, get_source, search_source
console.*      query, exceptions, export, clear
network.*      list_requests, get_request, get_body, summarize, search_bodies,
               list_websockets, ws_messages, export_har, simulate, clear
storage.*      local/session, cookies, indexeddb, caches, usage, export
debugger.*     enable, breakpoints, pause, resume, step, call_frames,
               evaluate_on_frame, inspect_object, wait_for_pause
inspector.*    pick, picked, element, parents, children, snapshot, accessibility_tree
profile.*      start/stop/status (presets: cpu, slow-page, hang, memory-leak, full)
profiler.*     cpu, coverage, trace, long_tasks
memory.*       heap.snapshot, heap.compare, gc, usage
time.*         install, freeze, run, jump, resume, set_fixed_date, set_wall_clock, virtual
device.*       preset, viewport, orientation, reset
environment.*  timezone, locale, color_scheme, reduced_motion, vision, status, reset
fault.*        abort, delay, replace_response, drop_next, modify_headers, list, clear
artifact.*     list, stat, read, read_lines, search, json_query, export
cdp.send       escape hatch to any raw CDP method

テスト

npm test                      # build + live MCP suite + HTTP suite
npm run test:live             # 117 checks: real MCP client, real Chromium, local fixture
npm run test:live:headed      # same, with a visible window
npm run test:deep             # 35 checks against a real public site
npm run test:http             # Streamable HTTP transport + origin guard
npm run test:real             # headed narrated walkthrough on live sites

すべてのスイートは実際のサーバーを起動し、実際のMCPクライアントに接続します。アサーションはtools/callを通るため、スキーマ検証、ハンドラーの配線、操作が一緒にカバーされます。

それらは呼び出しが返ったことではなく、動作をアサートします:

  • 400のリクエストペイロードとレスポンスボディが両方とも読み取れること

  • 700KBのレスポンスが、インラインで約500文字のアーティファクトとして返ってくること

  • time.run("30m")が60秒間隔をちょうど30回発火させること。time.jumpは1回だけ発火させること

  • 一時停止中のコールフレームからローカル変数が読み取れること(total=75、tax=15)

  • observeモードが読み取りを許可しつつ、3/3の変更を拒否すること

  • エクスポートされたHARが有効なHAR 1.2としてパースし直せること

  • ヒープスナップショットが実際の.heapsnapshotとして読み込めること

tests/deep-dive.mjsは、実際のHacker Newsに対して実行されます。h2/nginx/リモートIPの詳細を含む14件の実際のリクエストを記録し、34KBのレスポンスボディをワイヤーから読み取り、1285ノードのDOMSnapshot、1603ノードのアクセシビリティツリー、8MBのヒープ差分を検出します。


レイアウト

src/
  cdp/        persistent WebSocket, flat-session multiplexing
  browser/    launcher, target manager (auto-attach + debugger hold), registry, faults
  collect/    network, console, page and execution-context recorders
  store/      SQLite schema, blob store, artifact store
  ops/        the actual capabilities, independent of MCP
  mcp/        tool definitions and server wiring
  cli.ts      stdio / HTTP entry point
tests/        live MCP suites
scripts/      install-mcp.mjs

MCPはデーモンへの1つのインターフェースであり、デーモン自体ではありません。src/index.tsはコアをエクスポートするため、CLI、RESTレイヤー、テストハーネスが直接駆動できます。

データは~/.agent-browserにあります(移動するにはAGENTBROWSER_HOME): browserd.db、blobs/、artifacts/、profiles/、logs/。


セキュリティに関する注意

  • ループバックのみにバインドします。このエンドポイントは、ログイン中のセッションを保持するブラウザの完全な制御です。

  • ~/.agent-browser/profilesのブラウザプロファイルには、クッキーとセッショントークンが含まれます。記録されたボディには、訪問したページが返したものが含まれます。その両方がgitignoreされています。その状態を維持してください。

  • --net-log-capture-mode=Everythingは、ワイヤー上の生のバイトを含む可能性があります。自分が所有するトラフィックにのみ使用してください。

  • cdp.sendは無制限のCDPであり、制御モードによってのみ制限されます。


既知の制限

  • Debugger.setScriptSource ライブ編集は現在のChromiumには存在しません — ソースを編集してリロードしてください。

  • Network.getRequestPostData はマルチパートアップロードからファイルを省略することがあるため、「すべてのアップロードの全バイト」はそのパスだけでは保証されません。スタックレベルの詳細(DNS、ソケット、TLS)を得るには、capture_netlog を指定して起動してください。

  • 制御されたクロックは、addScriptToEvaluateOnNewDocument を介してインストールされるフェイクタイマーシムであり、デーモンが生のCDPを話すため、PlaywrightのClock APIではありません。time.virtual はChromium自身の仮想時間ポリシーを公開します。この2つを同じターゲットで組み合わせることはできず、デーモンはそれらを重ねることを拒否します。

  • タッチエミュレーションは意図的に Emulation.setEmitTouchEventsForMouse を設定しない: そのフラグはChromiumが Input.dispatchMouseEvent を恒久的に認識しなくさせるからです。代わりに page.click がタップを合成します。

  • ontouchstart in window はドキュメント作成時に決定されるため、リロード後に現れます。navigator.maxTouchPoints は即座にライブです。

  • Target.openDevTools (devtools.open) は実験的であり、一部のビルドはそれを拒否します。

  • センサーエミュレーションは実装されていません。生のプロセスメモリの読み書きは対象外です — それには別のデバッガアダプタが必要です。


ライセンス

MIT

Available Tools

239 tools
app.diagnose_interactionA

Click a control and report what the application actually did: whether a handler was attached, whether it threw, whether any request was initiated, whether the app consumed the input, and any error the framework caught. Use instead of page.click when a control appears to do nothing - page.click reports DOM mutations, which unrelated re-renders also produce.

Inputs: text, frame_id, selector, settle_ms, +2 more.

app.error_stateA
Read-only

Errors the application is holding that never reached the console. Frameworks (TanStack Query, SWR, Redux) catch what their own code paths throw and park it in state, so a handler can throw, roll its optimistic update back, and leave console.exceptions empty. Start here when a control does nothing and the console looks clean. Also reports whether this origin is a secure context, since crypto.randomUUID, clipboard and service workers are undefined on plain http:// but present on localhost.

Inputs: frame_id, target_id, browser_id, include_capabilities.

artifact.exportB
Read-only

Copy an artifact to a path on the daemon host, for tooling outside this session.

Inputs: path (required), artifact_id (required).

artifact.json_queryA
Read-only

JSONPath query against a JSON artifact: $.data.users[?(@.status == 'disabled')], $.a[1:5], $..name. Beats scanning a huge response by hand.

Inputs: path (required), artifact_id (required), limit.

artifact.listC
Read-only

Stored artifacts: bodies, screenshots, traces, heap snapshots, exports.

Inputs: kind, label, limit, browser_id.

artifact.readB
Read-only

Bounded byte-range read. Use encoding "base64" for binary artifacts.

Inputs: artifact_id (required), length, offset, encoding.

artifact.read_linesB
Read-only

Read a line window from a text artifact, 1-indexed and inclusive.

Inputs: artifact_id (required), end, start.

artifact.searchB
Read-only

Streamed search inside an artifact, so a multi-hundred-megabyte body is searchable without ever being fully loaded.

Inputs: query (required), artifact_id (required), is_regex, ignore_case, +2 more.

artifact.statC
Read-only

Size, mime, checksum and origin of one artifact.

Inputs: artifact_id (required).

attention.analyzeA
Read-only

Predict visual attention on a saved PNG screenshot with HotGaze. Returns focal points, optional region scores, and a heatmap overlay.

Inputs: screenshot_id (required), faces, backend, overlay, +2 more.

attention.compareA
Read-only

Compare predicted attention on two same-sized PNG screenshot artifacts. Regions apply to the same pixel coordinates in both screenshots.

Inputs: baseline_id (required), candidate_id (required), faces, backend, +1 more.

browser.closeA

Shut down a managed browser, or detach from an externally launched one.

Inputs: browser_id.

browser.connectB

Attach to a Chromium started elsewhere, via its CDP WebSocket endpoint. The daemon will never kill it.

Inputs: ws_endpoint (required), pid, profile.

browser.launchA

Launch a new Chromium with a persistent profile. Not usually needed: any tool auto-launches a browser when none is running. Needed for camera, microphone or screen capture: pass media (e.g. {camera:true, microphone:true, fake_devices:true, screen:true}) so getUserMedia/getDisplayMedia prompts and the screen picker are answered automatically. When url is given, the result reports what actually committed (landed.url, landed.title, landed.http_status) rather than echoing the request.

Inputs: url, media, profile, stealth, +6 more.

browser.listA
Read-only

List every browser the daemon owns or is attached to, with tab counts and control mode. Start here when unsure what exists. Closed browsers whose recordings are still queryable are counted as historical_available; pass include_historical:true to list them.

Inputs: limit, include_historical.

browser.list_targetsA
Read-only

Every attached target: pages, out-of-process iframes, dedicated/shared/service workers, extension contexts. Page tools accept any of these ids.

Inputs: type, browser_id.

browser.revealA

Put a headless session on screen for the human, in one call. Chromium fixes headless at process start, so this closes the browser and relaunches the same profile with a window, carrying the open tabs over. Cookies, localStorage and logins survive because they live in the profile; live page state (unsaved input, in-memory JS, agent DOM edits) does not, and the result says so. Returns a NEW browser_id.

Inputs: url, browser_id, window_size, control_mode.

browser.set_control_modeA

Arbitrate human and AI control. observe = read only; shared = both drive; agent = AI owns input; paused = AI frozen. Mutating tools refuse under observe and paused.

Inputs: mode (required), browser_id.

browser.statusA
Read-only

Full state of one browser: every page target with its committed URL, title, load state and HTTP status, plus version, how much has been recorded, active environment overrides and fault rules. The cheapest way to answer "what is actually on screen right now".

Inputs: browser_id.

cache.set_disabledA

Disable or re-enable the HTTP cache, to test whether a bug is a caching artifact.

Inputs: disabled (required), target_id, browser_id.

capture.bundleA
Read-only

Bundle a time slice of the recording into a single zip: network HAR with bodies, console NDJSON, runnable curls, navigations and a summary.md. The window is chosen after the bug, so "capture the last 10 minutes" works without arming anything first. Credentials are masked unless redact:false.

Inputs: note, since, until, redact, +3 more.

cdp.sendA

Escape hatch: send any raw Chrome DevTools Protocol command. Use when no typed tool covers the capability. Large results are stored as an artifact instead of being inlined.

Inputs: method (required), params, target_id, browser_id, +1 more.

console.clearA

Delete recorded console entries for a browser or one target.

Inputs: target_id, browser_id.

console.exceptionsC
Read-only

Uncaught exceptions only, with stack traces.

Inputs: limit, order, since, stack, +6 more.

console.exportB
Read-only

Write a time slice of the console to an NDJSON artifact. The answer to "50,000 log lines".

Inputs: level, since, until, search, +4 more.

console.queryB
Read-only

Console output and uncaught exceptions, recorded continuously and kept across navigations. Filter by level, text, regex and time window rather than dumping everything. Narrow the response with fields (e.g. ["level","text","at"]) and stack:"none" when you only need to see what was logged.

Inputs: level, limit, order, regex, +10 more.

cpu.resetB

Remove CPU throttling.

Inputs: target_id, browser_id.

cpu.throttleB

Slow the renderer down by a factor: 1 is normal, 4 is a mid-range phone, 6 is a slow one.

Inputs: rate (required), target_id, browser_id.

credentials.deleteC

Delete a saved credential.

Inputs: site (required).

credentials.listA
Read-only

Saved credentials as metadata only: site, origin, username, when saved and last used. Never includes passwords.

Inputs: no named parameters.

credentials.loginA

Sign in on the current page using a saved credential. The password goes straight from the vault into the field and is never exposed. Refuses if the page origin does not match the one the credential was saved for. Filling is not proof of login: confirm with page.expect.

Inputs: site (required), submit, target_id, browser_id, +3 more.

credentials.saveA

Save a login the agent can USE but never READ. The password is encrypted at rest and no tool ever returns it, so a prompt-injected agent cannot exfiltrate it. Bound to an exact origin. Intended for development and test accounts.

Inputs: site (required), origin (required), password (required), username (required), +4 more.

css.computedB
Read-only

Computed style of an element. Defaults to the properties that usually matter; pass all:true for everything.

Inputs: all, nth, ref, text, +7 more.

css.explain_visibilityA
Read-only

Answers "why can I not see this?" by checking the element and every ancestor for display, visibility, opacity, zero size, clipping and occluders, and naming the culprit.

Inputs: nth, ref, text, xpath, +5 more.

css.get_stylesheet_textC
Read-only

Source text of one stylesheet, stored as an artifact.

Inputs: style_sheet_id (required), save_path, target_id, browser_id.

css.list_stylesheetsC
Read-only

Stylesheets loaded by the document, with rule counts and cross-origin status.

Inputs: target_id, browser_id.

css.matched_rulesA
Read-only

The cascade as DevTools shows it: which rule in which stylesheet at which line set each property, strongest first, plus inherited rules.

Inputs: nth, ref, text, xpath, +6 more.

css.set_styleA

Set inline style properties on an element, as editing element.style in DevTools would.

Inputs: properties (required), nth, ref, text, +6 more.

debugger.call_framesB
Read-only

The call stack while paused: functions, locations, scope chain and this for each frame.

Inputs: target_id, browser_id.

debugger.disableA

Turn the debugger off and drop its breakpoints.

Inputs: target_id, browser_id.

debugger.enableA

Turn on the JavaScript debugger for a target and list the scripts it knows about.

Inputs: target_id, browser_id.

debugger.evaluate_on_frameB

Evaluate an expression in the scope of a paused call frame: this is how you read local variables.

Inputs: expression (required), target_id, browser_id, frame_index, +1 more.

debugger.inspect_objectB
Read-only

Expand a remote object or scope handle into its properties.

Inputs: object_id (required), target_id, browser_id, own_properties_only.

debugger.list_breakpointsC
Read-only

Breakpoints currently set.

Inputs: target_id, browser_id.

debugger.list_scriptsB
Read-only

Scripts the debugger has parsed, including inline and eval'd code, with script ids.

Inputs: target_id, browser_id, url_contains, include_anonymous.

debugger.pauseB

Pause JavaScript execution at the next statement.

Inputs: wait_ms, target_id, browser_id.

debugger.pause_on_exceptionsC

Pause on no exceptions, only uncaught ones, or all of them.

Inputs: state (required), target_id, browser_id.

debugger.remove_breakpointC

Remove one breakpoint.

Inputs: breakpoint_id (required), target_id, browser_id.

debugger.resumeC

Resume execution.

Inputs: target_id, browser_id.

debugger.set_breakpointB

Set a breakpoint by URL, URL regex or script id, with an optional condition expression.

Inputs: line (required), url, column, condition, +4 more.

debugger.stepB

Step into, over, or out of the current call while paused.

Inputs: kind (required), target_id, browser_id.

debugger.wait_for_pauseB
Read-only

Block until execution pauses (breakpoint hit or exception), then report where.

Inputs: target_id, browser_id, timeout_ms.

device.orientationA

Rotate the emulated screen between portrait and landscape. This is the screen, not the gyroscope: for the tilt angles a page reads from deviceorientation, use sensor.orientation.

Inputs: orientation (required), target_id, browser_id.

device.presetA

Emulate a device: desktop, desktop-hidpi, laptop, iphone (390), iphone-se (375, the modern SE), phone-small (320, the original SE and the width most layouts break at), pixel, tablet, ipad. Sets viewport, DPR, touch and user agent.

Inputs: preset (required), target_id, browser_id, orientation.

device.resetA

Drop device emulation and go back to the real window size.

Inputs: target_id, browser_id.

device.viewportB

Set an exact viewport, device pixel ratio, mobile flag and touch emulation.

Inputs: width (required), height (required), touch, mobile, +5 more.

devtools.openA

Open a real DevTools window for the human, at a chosen panel. Experimental; keep using the CDP-backed tools for machine work.

Inputs: panel, target_id, browser_id.

doc.crawlA

Point at a starting page and explore outward, saving each page as a searchable document. Follows links breadth-first to max_depth, staying inside scope (same-origin by default) and honouring include/exclude regexes. find rules match regex, text or CSS selectors on every page and are stored with the results, so this doubles as "search a whole site for X". Every page is scrolled before extraction. Pages already saved are reused rather than re-fetched unless refresh:true. Each saved page is stored as it is visited, so a run cut short (client timeout or cancel) keeps everything it reached - doc.crawls shows it; progress notifications are sent per page when the client asks.

Inputs: url (required), find, save, scope, +22 more.

doc.crawlsA
Read-only

Past crawl runs: what was explored, how far it got, what it saved and what it matched. Pass crawl_id for that run's documents and match hits.

Inputs: rule, site, limit, crawl_id.

doc.deleteA

Remove saved documents. By doc_id or url it deletes one; by site, collection or crawl_id it lists what would go and needs confirm:true to actually do it. The text artifacts are left on disk for artifact tooling to reclaim.

Inputs: url, site, doc_id, confirm, +2 more.

doc.getA
Read-only

One saved document: metadata, headings, recorded matches, and a line window of the text. Address it by doc_id or by url. The full text is an artifact, so artifact.search and artifact.read_lines work on it too.

Inputs: url, doc_id, end_line, start_line, +2 more.

doc.listB

What is in the library. Filter by site, collection, URL or title, sort by date, title, url, site, length or word count. group_by:"site" answers "which pages do I already have saved" in one row per site; group_by:"collection" does the same for collections. Reads the database only - no browser needed.

Inputs: site, sort, limit, order, +8 more.

doc.saveA

Capture a page as a saved document: scroll it until the lazy content has actually loaded, extract it as Markdown, store the full text as an artifact and index it for search. This is the tool for "read these docs" - save once, then answer from doc.search instead of re-fetching. Passing url navigates there first and returns immediately if that URL is already saved (refresh:true re-captures).

Inputs: url, find, label, format, +15 more.

doc.searchA
Read-only

Search every saved page at once. Default mode is ranked full-text with snippets showing the match in context; terms are quoted and ANDed for you, so punctuation in a query is safe. mode:"regex" streams the stored text instead, for patterns full-text search cannot express (version numbers, identifiers, anything with wildcards). Scope with site or collection.

Inputs: query (required), raw, mode, site, +6 more.

dom.exportA
Read-only

Dump the entire DOM tree, including shadow roots and iframe documents, to an artifact.

Inputs: save_path, target_id, browser_id, include_shadow_dom.

dom.get_htmlB
Read-only

Markup of one element or of the whole document. Always stored as an artifact; only a bounded window is returned inline.

Inputs: nth, ref, text, xpath, +8 more.

dom.inspectB
Read-only

Everything about one element: attributes, computed box, visibility, a stable selector path and its markup.

Inputs: nth, ref, text, xpath, +5 more.

dom.queryB
Read-only

Find elements by CSS selector, with text, attributes, box and visibility for each match.

Inputs: selector (required), limit, frame_id, target_id, +1 more.

dom.removeC

Remove an element from the document.

Inputs: nth, ref, text, xpath, +5 more.

dom.set_attributeC

Set or remove an attribute on an element.

Inputs: name (required), nth, ref, text, +8 more.

dom.set_htmlB

Replace an element and its subtree with new markup.

Inputs: html (required), nth, ref, text, +6 more.

dom.summaryA
Read-only

Structural outline of the document rather than its markup. Read this first; pull HTML only for the branch that matters.

Inputs: selector, max_depth, max_nodes, target_id, +1 more.

environment.color_schemeC

Force prefers-color-scheme to dark, light or no-preference.

Inputs: scheme (required), target_id, browser_id.

environment.localeB

Override the browser locale, e.g. "de-DE".

Inputs: locale (required), target_id, browser_id.

environment.media_featuresB

Set arbitrary emulated media features, merged with what is already overridden.

Inputs: features (required), media, target_id, browser_id.

environment.reduced_motionC

Toggle prefers-reduced-motion.

Inputs: reduced (required), target_id, browser_id.

environment.resetA

Put every environment override back to browser defaults. Clock and fault rules are cleared separately.

Inputs: target_id, browser_id.

environment.statusB
Read-only

Every override currently changing how the page behaves: device, network, CPU, clock, faults.

Inputs: target_id, browser_id.

environment.timezoneB

Override the browser timezone with an IANA id, e.g. "America/New_York". Good for DST and midnight-rollover bugs.

Inputs: timezone (required), target_id, browser_id.

environment.visionA

Simulate a vision deficiency: none, achromatopsia, blurredVision, deuteranopia, protanopia, tritanopia, reducedContrast. Screenshot afterwards to see the effect.

Inputs: deficiency (required), target_id, browser_id.

fault.abortC

Make matching requests fail. URL patterns use * wildcards, e.g. "/analytics/".

Inputs: url (required), count, target_id, browser_id, +2 more.

fault.clearA

Remove every fault rule and take request interception back down.

Inputs: target_id, browser_id.

fault.delayC

Stall matching requests. Answers "what does the UI do if Save takes 20 seconds?".

Inputs: url (required), delay (required), count, target_id, +2 more.

fault.drop_nextB

Drop the next N matching requests, as a connection loss would.

Inputs: url (required), count, target_id, browser_id.

fault.listA
Read-only

Active fault rules, how many times each has fired, and the URLs they actually matched. A rule showing times_applied:0 is the usual reason "the app ignored my outage" - the glob never fired.

Inputs: browser_id.

fault.modify_headersC

Rewrite request headers on matching requests.

Inputs: url (required), headers (required), count, target_id, +1 more.

fault.removeC

Remove one fault rule.

Inputs: fault_id (required), browser_id.

fault.replace_responseC

Return a synthetic response for matching requests, e.g. a 500 with an error body.

Inputs: url (required), body, count, status, +3 more.

fault.testA
Read-only

Dry-run a URL glob against the traffic already recorded, without creating a rule. Returns sample matches and non-matches, and warns when the pattern would also take out the document of the page you are driving. Use before fault.abort when the pattern is not obviously right.

Inputs: url (required), limit, target_id, browser_id, +1 more.

file.writeA

Write a file on the daemon host in one call, instead of echoing content through a shell in chunks. Source is exactly one of content (text, or base64 with encoding), json (pretty-printed), artifact_id, or batch_id (a page.visit_batch run's results, partial if still running). The file name is sanitized for every OS (illegal characters, reserved names like CON, trailing dots, length); the directory must be absolute and is created. on_conflict: "rename" (default, writes "name (2).ext"), "error", or "overwrite" (atomic replace).

Inputs: dir, json, path, content, +5 more.

guide.listA
Read-only

The index: every tool family with its size, how many of its tools mutate, and its family-wide notes, plus every documentation topic. Pass family to list that family's tools instead.

Inputs: kind, family.

guide.orientA
Read-only

START HERE if you have not used this server before. One call: what browserd is, every tool family and what each is for, which tool to reach for in the situations that come up most, and the techniques sessions habitually skip (reading component state off the React fiber, patching the running page to confirm a fix before editing a file). Cheaper than discovering the surface by trial.

Inputs: verbose.

guide.searchA
Read-only

Search browserd's own documentation when you know the problem but not the tool. Ranks over tool names, summaries, argument descriptions, hand-written notes and long-form topics. Filter by family or by whether a tool mutates the page, sort by relevance, name or family, and pass full:true to expand every hit into its complete write-up.

Inputs: query (required), full, kind, sort, +3 more.

guide.toolA
Read-only

The long guide to one tool: what it is for, how it works underneath, every argument with its type and meaning read from the live registration, the caveats that cost a session, worked examples and related tools. Accurate by construction, because the arguments come from the same schema the server validates against.

Inputs: name (required).

guide.topicA
Read-only

Long-form background on the system rather than on one tool: start, architecture (how it works under the hood), install (where this daemon lives and how to update it, with live paths), recording, artifacts, control, traps, repeat.

Inputs: name (required).

inspector.accessibility_treeC
Read-only

Full accessibility tree, as a screen reader would traverse it.

Inputs: max_nodes, save_path, target_id, browser_id.

inspector.childrenC
Read-only

Direct children of an element with sizes and text.

Inputs: nth, ref, text, limit, +6 more.

inspector.elementB
Read-only

DevTools Elements panel for one node: box model, key computed styles, event listeners and accessibility role/name.

Inputs: nth, ref, text, xpath, +7 more.

inspector.parentsB
Read-only

Ancestor chain of an element with the layout properties that create stacking and clipping.

Inputs: nth, ref, text, xpath, +5 more.

inspector.pickA

Arm the DevTools element picker so the human can click the element they mean. Then read the result with inspector.picked.

Inputs: mode, target_id, browser_id, timeout_ms.

inspector.pickedA
Read-only

The element the human last picked, as a backend_node_id usable by every element-taking tool.

Inputs: target_id, browser_id.

inspector.snapshotB
Read-only

DOMSnapshot: structure, layout and selected computed styles in one pass, flattened across shadow roots and iframes. Written to an artifact.

Inputs: save_path, target_id, browser_id, computed_styles.

js.evaluateA

Run an expression exactly as typing it into the DevTools console would, command-line helpers ($, $$, $x) included. Awaits promises by default.

Inputs: file, frame_id, max_chars, target_id, +7 more.

js.get_sourceC
Read-only

Source of one script or resource. Returns a line window inline and the whole file as an artifact.

Inputs: url, line_end, save_path, script_id, +3 more.

js.list_scriptsC
Read-only

Scripts, documents and stylesheets loaded by the page, plus eval'd scripts when the debugger is enabled.

Inputs: types, target_id, browser_id, url_contains.

js.search_sourceB
Read-only

Grep every loaded script in the browser and return file:line hits with excerpts. Use this instead of pulling bundles into context.

Inputs: query (required), types, is_regex, max_files, +6 more.

location.setB

Override geolocation by coordinates or preset (mumbai, new-york, london, tokyo, sydney, san-francisco), or make it unavailable.

Inputs: preset, accuracy, latitude, longitude, +3 more.

locator.candidatesA
Read-only

Given any element (ref, selector, xpath, text), the locators a durable test could use for it - role plus accessible name, label, text, test id - each with how many elements it actually matches right now. When a locator is ambiguous it computes the landmark scope that makes it unique, which is the honest alternative to .first(). Use this before writing a Playwright test or a scenario, not after it fails.

Inputs: nth, ref, text, xpath, +6 more.

locator.checkA
Read-only

Resolve a semantic locator against the live page and report how many elements it hits. A locator matching zero or several is far cheaper to find here than after compiling the test, running it three times and reading a strict-mode failure.

Inputs: target (required), target_id, browser_id, test_id_attribute.

memory.gcA

Force a garbage collection, so a following snapshot only shows genuinely retained objects.

Inputs: target_id, browser_id.

memory.heap.compareA
Read-only

Diff two heap snapshots by constructor: what grew, what shrank, and how many detached DOM nodes accumulated. This is how leaks get found.

Inputs: after_artifact_id (required), before_artifact_id (required), top.

memory.heap.snapshotB

Take a heap snapshot, streamed straight to an artifact. Label it so you can diff two of them later.

Inputs: label, save_path, target_id, browser_id, +1 more.

memory.usageC
Read-only

Current JS heap usage and DOM counters.

Inputs: target_id, browser_id.

network.clearB

Delete recorded requests for a browser.

Inputs: browser_id.

network.export_harC
Read-only

Export the matching requests as a HAR artifact, optionally with bodies embedded.

Inputs: since, until, save_path, target_id, +4 more.

network.get_bodyB
Read-only

Request payload or response body for one request. Returns a bounded window plus an artifact handle, so a huge response never floods the context. as_json parses it for you.

Inputs: request_id (required), which, offset, as_json, +2 more.

network.get_requestA
Read-only

Everything about one request: all request and response headers (including the ones actually put on the wire), initiator, timing, redirect chain and body availability.

Inputs: request_id (required), include_redirect_chain.

network.list_requestsA
Read-only

Recorded HTTP requests with status, type, size and timing. Recording runs continuously, so this covers traffic from before the AI was asked anything. Filter hard; fetch bodies separately.

Inputs: limit, order, since, state, +16 more.

network.list_websocketsB
Read-only

Recorded WebSocket connections, with handshake details and frame counts. Server-sent event streams appear here too.

Inputs: limit, open_only, target_id, browser_id, +1 more.

network.probeA
Read-only

Issue a request from inside the page and report what the page sees. Unlike curl this respects CORS, service workers, proxies and the page origin, so it faithfully answers "can this app reach its API".

Inputs: url (required), method, headers, target_id, +2 more.

network.search_bodiesB
Read-only

Search inside recorded request and response bodies. Answers "which response contained this token" without downloading every payload.

Inputs: query (required), since, until, which, +7 more.

network.simulateB

Damage the network on purpose. Presets: slow-3g, fast-3g, 4g, bad-wifi, offline, none. Or set latency, download and upload directly.

Inputs: preset, upload, latency, offline, +3 more.

network.simulate_resetC

Restore normal network conditions.

Inputs: target_id, browser_id.

network.summarizeA
Read-only

Aggregate view: what is slow, what failed, what is heaviest, grouped by domain, resource type or status. Start here for "what is wrong with this page".

Inputs: sort, since, until, group_by, +7 more.

network.ws_messagesB
Read-only

Frames on one WebSocket, filterable by direction and payload text.

Inputs: websocket_id (required), limit, order, offset, +2 more.

page.activate_tabC

Bring a tab to the front, as clicking its tab strip entry would.

Inputs: target_id, browser_id.

page.audit_layoutA

Measure a page at several viewport widths and report what is actually broken: horizontal overflow (outermost offender only), touch targets under the minimum size, and clipped text. Answers responsive questions that a screenshot leaves to guesswork. Viewport emulation is always cleared afterwards.

Inputs: urls, height, widths, target_id, +3 more.

page.batch_statusA

Results so far of a page.visit_batch run, finished or not. wait_ms waits for more progress first; cancel:true stops the run and keeps everything already visited. Omit batch_id to list recent runs.

Inputs: limit, cancel, offset, wait_ms, +2 more.

page.clickA

Click an element, scrolling it into view first. By default watches for a DOM reaction and reports observed_change, so "the input was dispatched" is not mistaken for "the app handled it".

Inputs: x, y, nth, ref, +13 more.

page.close_tabC

Close a tab.

Inputs: target_id, browser_id.

page.dragA

Press, travel and release like a hand: drag-and-drop, slide a slider or "slide to unlock", reorder a list, pan a map, draw a stroke, or swipe (direction + distance, with touch input on a phone). The pointer approaches the source, presses, holds briefly, moves along a curved slow-fast-slow path with slight wobble, pauses, then releases. Native HTML5 draggable elements are detected and finished with real dragenter/dragover/drop. release:false leaves the press down for page.pointer or another page.drag.

Inputs: x, y, nth, ref, +33 more.

page.expectB
Read-only

Assert the state of one element and get pass/fail plus what was actually observed. Replaces the evaluate-then-eyeball-the-JSON loop. Give timeout_ms to retry until it holds instead of failing on a race.

Inputs: nth, ref, text, value, +14 more.

page.extract_textB
Read-only

Readable text of the page, or of one element when given a locator. Pass selector/ref to read a single panel instead of the whole page.

Inputs: nth, ref, text, xpath, +8 more.

page.filmstripA
Read-only

SEE MOTION. Records the page briefly and returns the frames tiled into ONE labelled contact sheet, so entrance animations, hovers, reveals and scroll effects can actually be judged. A screenshot is a single instant and repeated screenshots are unrelated instants; this samples evenly across a real recording. Drive the motion with reload, hover or scroll_by so there is something to film.

Inputs: hover, label, frames, reload, +9 more.

page.go_backC

Go back in session history.

Inputs: target_id, browser_id.

page.go_forwardC

Go forward in session history.

Inputs: target_id, browser_id.

page.handle_dialogB

Accept or dismiss an open JavaScript dialog.

Inputs: accept (required), target_id, browser_id, prompt_text.

page.highlightA

Draw the DevTools highlight over an element so a human can see what the AI is looking at. Follow with page.screenshot to verify the right element was found.

Inputs: nth, ref, text, xpath, +7 more.

page.historyB
Read-only

Recorded navigation history for this browser, including same-document navigations.

Inputs: limit, target_id, browser_id.

page.hoverB

Move the mouse over an element, triggering hover styles and menus.

Inputs: nth, ref, text, xpath, +5 more.

page.list_dialogsB
Read-only

JavaScript dialogs (alert/confirm/prompt/beforeunload) currently blocking the page.

Inputs: target_id, browser_id.

page.list_framesA
Read-only

Frame tree with origins and execution-context ids, so JS can be run inside a specific iframe.

Inputs: target_id, browser_id.

page.list_tabsA
Read-only

List open tabs with their URLs, titles and target ids.

Inputs: browser_id.

page.long_pressA

Press and hold on an element or point: long-press menus, "press and hold" buttons, hold-to-confirm, hold-to-record. Holds for duration_ms, or until until_selector/until_text appears (or disappears with until_gone) and then lets go. Mouse holds creep by a pixel now and then as a resting hand does. release:false keeps holding so page.drag or page.pointer can continue.

Inputs: x, y, nth, ref, +20 more.

page.navigateB

Navigate to a URL and wait for the load state. Reports the committed URL, the document title and its HTTP status, so a dev server serving a different project on the expected port is visible immediately.

Inputs: url (required), target_id, browser_id, timeout_ms, +1 more.

page.new_tabC

Open a new tab, optionally at a URL.

Inputs: url, activate, browser_id.

page.observeA
Read-only

Sample expressions on an interval and return the timeline plus the transitions between values. Use to measure how long a UI sat locked or when a step actually appeared, instead of hand-rolling a polling loop in js.evaluate.

Inputs: for_ms, sample, every_ms, selector, +3 more.

page.pinchA

Two-finger touch gesture: pinch to zoom (scale over 1 spreads the fingers, under 1 pinches them together) and/or twist (rotate_deg). For maps, image viewers, canvases and anything reading multi-touch. Turn on touch emulation first (device.preset) so the page treats it as a touch device.

Inputs: x, y, nth, ref, +19 more.

page.pointerA

Raw pointer script for anything the other tools do not cover: draw a shape, hover-then-press, drag with a wheel scroll in the middle, a press in one call and the release in a later one. actions run in order; each move travels the human path from wherever the pointer is. The held button and position persist per tab between calls. Example: [{action:"move",selector:"canvas"},{action:"down"},{action:"move",x:300,y:200},{action:"move",x:350,y:260},{action:"up"}].

Inputs: actions (required), seed, html5, human, +7 more.

page.pressB

Press a key or chord, e.g. "Enter", "Escape", "Control+Shift+K".

Inputs: key (required), nth, ref, text, +6 more.

page.reloadA

Reload the page, optionally bypassing the cache. Note: this fires pagehide/beforeunload, so an app that persists state in those handlers will not come back in the same state - page.navigate to the same URL skips them, which matters for repeatable test loops.

Inputs: target_id, browser_id, wait_until, ignore_cache.

page.reset_targetA

Unstick one tab without closing Chromium. Use when a tab stops answering (evaluate or navigate hangs until timeout). Fails the tab's in-flight commands, terminates its running script, stops loading and parks it on about:blank (or url). mode "auto" (default) escalates to replacing the tab with a fresh one if the renderer still does not answer; the result then carries a NEW target_id.

Inputs: url, mode, target_id, browser_id.

page.screenshotA
Read-only

See the rendered page. Returns the image for visual inspection plus a stored artifact. mode: viewport, full_page, element (with a locator), or sheet: the whole page cut into side-by-side columns that fit one screen, so a long page stays readable. Prefer sheet for reviewing a whole page; add width:320 for a phone or width:1280 for a desktop without touching the viewport.

Inputs: nth, ref, mode, text, +21 more.

page.scrollB

Scroll the page or a specific scrollable element. If wheel dispatch stalls on a busy compositor it falls back to a programmatic scroll and says so via via.

Inputs: to, nth, ref, text, +8 more.

page.select_optionC

Choose one or more options in a .

Inputs: nth, ref, text, xpath, +7 more.

page.set_viewportC

Resize the emulated viewport. See device.preset for realistic device profiles.

Inputs: reset, width, height, mobile, +3 more.

page.snapshotA
Read-only

Accessibility-tree snapshot of the interactive elements, each with a stable ref (eNN) usable by page.click and friends. Cheaper and more reliable than screenshots for deciding what to click. format:"aria" instead emits Playwright's aria-snapshot dialect for a toMatchAriaSnapshot assertion - refless, and it leaves existing refs alone.

Inputs: format, max_nodes, target_id, browser_id, +2 more.

page.typeA

Type text into an element, with real key events so the page sees each keystroke. Newlines become Enter in textareas and contenteditables; on a single-line input they are reported as dropped rather than silently flattened. Reads the field back so landed_characters is measured, not assumed.

Inputs: text (required), nth, ref, clear, +9 more.

page.unhighlightB

Clear any highlight overlay.

Inputs: target_id, browser_id.

page.upload_filesC

Set files on a file input.

Inputs: files (required), nth, ref, text, +6 more.

page.visit_batchA

Visit many URLs and extract from each, with a separate status per page (ok / error / timeout) so one bad page never stalls the rest. Runs in background tabs (concurrency, default 2) with a hard per-page deadline; a page that misses it has its tab reset and the batch moves on. The run lives in the daemon: this call waits up to wait_ms, returns every finished page, and the rest keeps going - poll page.batch_status, so a client timeout never loses results. Sends MCP progress notifications per page when the client asks for them. extract: "text" (innerText, default), "visible_text", "markdown" (doc capture; save:true also stores each as a document), or "none"; expression runs your own JS per page and returns its value.

Inputs: urls (required), save, label, extract, +11 more.

page.wait_forA
Read-only

Wait until an element appears or disappears, or until text shows up. Use any_of to race several outcomes (success UI vs error UI) instead of guessing one and eating a full timeout; all_of waits for every condition. On timeout the error reports which conditions were unmet and the closest thing on the page.

Inputs: gone, text, all_of, any_of, +6 more.

performance.metricsC
Read-only

Runtime performance counters: heap, nodes, listeners, layout and script durations.

Inputs: target_id, browser_id.

performance.processesA
Read-only

Chromium processes with types, PIDs and cumulative CPU time. Useful when something hangs.

Inputs: browser_id.

permissions.grantA

Grant browser permissions, e.g. ["geolocation", "notifications", "camera", "microphone"], optionally scoped to one origin. Web names are mapped to CDP types (camera -> videoCapture, microphone -> audioCapture); CDP names pass through. Granting camera/microphone lets getUserMedia resolve with no prompt, but supplies no device; the getDisplayMedia screen picker cannot be granted away at all. For both, launch with browser.launch{media}.

Inputs: permissions (required), origin, browser_id.

permissions.resetB

Reset all permission overrides.

Inputs: browser_id.

profiler.coverage.startC

Start precise JavaScript coverage recording.

Inputs: detailed, target_id, browser_id.

profiler.coverage.stopB

Stop coverage and report unused bytes per script.

Inputs: save_path, target_id, browser_id.

profiler.cpu.analyzeB
Read-only

Re-analyze a stored .cpuprofile artifact, with a different depth if wanted.

Inputs: artifact_id (required), top.

profiler.cpu.startC

Start the sampling CPU profiler on a target.

Inputs: target_id, browser_id, sampling_interval_us.

profiler.cpu.stopB

Stop the CPU profiler and return self-time per function, with the full .cpuprofile as an artifact.

Inputs: top, save_path, target_id, browser_id.

profiler.trace.long_tasksB
Read-only

Pull the long main-thread tasks out of a recorded trace. Answers "what hung the page" without the trace ever entering the context.

Inputs: artifact_id (required), limit, min_duration_ms.

profiler.trace.startA

Start a Chromium trace. Presets: web-performance, minimal, javascript, rendering. Keep traces short.

Inputs: preset, browser_id, categories.

profiler.trace.stopA

Stop tracing and stream the result to an artifact, without loading it into memory.

Inputs: save_path, browser_id.

profile.startA

Preset-driven profiling. One call arms every recorder that matters: cpu, slow-page, hang, memory-leak, full. Reproduce the problem, then call profile.stop.

Inputs: preset, target_id, browser_id.

profile.statusC
Read-only

What is currently recording.

Inputs: browser_id.

profile.stopB

End the profile session and return one summary: top functions, longest tasks, heap growth, network failures and console errors, plus artifacts for each.

Inputs: save_path, browser_id.

qa.evidenceA
Read-only

What browserd observed during a window, shaped as things a scenario could assert: first-party XHR/fetch calls as requestSeen candidates, the navigation path, console errors, exceptions and HTTP failures. Because recording is always on, the window is chosen after the flow, once you know the question. Every candidate carries a null oracle: it says what happened, never what should have happened.

Inputs: since, until, origin, target_id, +1 more.

qa.record_startB

Start recording the flow you are about to drive, as steps a test harness can compile. Every mutating page action is captured with its semantic locator resolved before the action runs, which is the only moment that answer is reliable. Network and console were already being recorded and are unaffected.

Inputs: flow (required), target_id, browser_id.

qa.record_statusA
Read-only

Whether a recording is active, and how much it has captured.

Inputs: no named parameters.

qa.record_stopA

Stop recording. The steps survive, so qa.steps and qa.scenario_draft still work afterwards.

Inputs: no named parameters.

qa.scenario_draftB
Read-only

The recorded flow as a draft scenario. It is deliberately not compilable: assertions are empty and requirementSource is null, because those are the two things an agent must not invent. Candidate assertions are listed separately for a human or an agent to promote against a real requirement.

Inputs: id (required), name (required), role, viewport, +4 more.

qa.session_eventsB
Read-only

The recording as an exploration event log a QA harness can ingest (Auto-QA: feed each to qa_record_event). Returned rather than written, so the harness keeps control of its own evidence directory.

Inputs: since, until, target_id, browser_id.

qa.stepsB
Read-only

The recorded flow as scenario steps, each with its semantic target and, where one exists, the reason it cannot be compiled as recorded. A step whose locator matches several elements is reported rather than quietly narrowed.

Inputs: include_problems.

recording.resetA

Clear recorded console and network in one call, starting a fresh window. Use before a repro instead of hand-filtering with since:. Defaults to both; name one to clear only that.

Inputs: console, network, browser_id.

scenario.applyA

Apply a bundle of conditions at once: slow-mobile, terrible-network, offline, cold-load, low-end-desktop. Beats setting fifteen switches by hand.

Inputs: scenario (required), target_id, browser_id.

scenario.listC
Read-only

Available scenarios, device presets, network presets and vision deficiencies.

Inputs: no named parameters.

sensor.motionA

Feed devicemotion: acceleration (m/s^2, gravity removed), acceleration_including_gravity (m/s^2) and rotation_rate (rad/s), each as {x,y,z}. For shake detection, step counters and anything reading the accelerometer or gyroscope rate.

Inputs: target_id, browser_id, acceleration, rotation_rate, +1 more.

sensor.orientationA

Set how the device is held, so deviceorientation fires on a desktop: alpha (compass turn), beta (front-back tilt) and gamma (left-right tilt) in degrees, or a named pose (flat-face-up, portrait-upright, landscape-left, landscape-right). Angles given alongside a pose override it. For VR, aim the head instead: yaw/pitch/roll turn the head from the pose (default landscape-left, a phone in a headset), e.g. pitch:-30 to look down at a menu. This is the gyroscope a VR viewer, compass or tilt control reads.

Inputs: yaw, beta, pose, roll, +6 more.

sensor.pathA

Play a head movement in real time, interpolated smoothly at up to 120 Hz, and return when it finishes: a preset (look-around, nod, spin, hold) relative to a base pose, or keyframes (head yaw/pitch/roll from the pose, or absolute angles). The only way to test smoothing, recentring and gaze-dwell logic, which a single static reading cannot exercise. For a realistic phone add jitter_deg / drift_deg_per_min (Chrome drops deviceorientation changes under 0.1 deg, so a perfectly still virtual phone looks dead) and motion:true to stream matching devicemotion. At most 60 seconds.

Inputs: hz, pose, seed, motion, +9 more.

sensor.resetB

Stop overriding one sensor type, or all of them, and return the page to the real sensors.

Inputs: type, target_id, browser_id.

sensor.setA

Set one raw sensor reading: accelerometer, linear-acceleration, gravity, gyroscope or magnetometer take x/y/z; absolute-orientation and relative-orientation take a quaternion x/y/z/w; ambient-light takes value in lux. available:false makes the page see the sensor as missing, which is how to test the "no gyroscope" fallback.

Inputs: type (required), w, x, y, +5 more.

sensor.statusA
Read-only

Which sensors are overridden on this page, plus the available sensor types, poses and path presets, and what cannot be emulated (proximity; the camera is a browser.launch option).

Inputs: target_id, browser_id.

service_worker.bypassC

Bypass service workers so requests go to the network.

Inputs: bypass (required), target_id, browser_id.

skeleton.captureA

Measure the real UI at several widths and save a skeleton (bones) file: the exact boxes a loading placeholder should draw. Elements carrying the marker attribute (default data-skeleton) are used when present; otherwise the layout under selector is decomposed automatically - wrapped text into one bone per visual line, media and controls into their own boxes, and any container that paints a background or a rounded border into a lighter surface bone drawn underneath its children. Circles, pills and asymmetric corners are preserved as such. Bones are matched across widths by DOM position, so an element that only exists on desktop is recorded as absent on mobile rather than shifting the rest. Viewport emulation is always cleared afterwards.

Inputs: name (required), url, height, marker, +18 more.

skeleton.deleteC

Delete a captured skeleton.

Inputs: name (required).

skeleton.emitA
Read-only

Turn a captured skeleton into ready-to-paste source: html, css, react, vue, svelte, or the raw json. Output is mobile-first CSS - the narrowest captured width is the base rule and wider ones are min-width overrides - with horizontal geometry in percentages so it stretches between breakpoints. Honours prefers-reduced-motion.

Inputs: name (required), color, format, animation, +6 more.

skeleton.listB
Read-only

Captured skeletons, with their widths and bone counts.

Inputs: no named parameters.

skeleton.previewA

Draw a captured skeleton over the live page, anchored to the element it was measured from, so you can screenshot it and see whether the placeholder actually matches. The overlay lives in a shadow root outside the app tree, so page CSS cannot restyle it and it cannot restyle the page. Call with remove:true to take it down.

Inputs: name (required), color, remove, selector, +6 more.

skeleton.showC
Read-only

The bones of one skeleton. Pass width to get flat rectangles for the nearest captured width instead of the per-width map.

Inputs: name (required), limit, width.

storage.clearB

Clear all of localStorage or sessionStorage for the origin.

Inputs: kind, target_id, browser_id.

storage.clear_cookiesB

Delete every cookie in the browser.

Inputs: browser_id.

storage.clear_originC

Wipe selected storage types for the page origin.

Inputs: types, target_id, browser_id.

storage.delete_cookiesB

Delete cookies by name, optionally scoped to a domain, path or URL.

Inputs: name (required), url, path, domain, +1 more.

storage.exportA
Read-only

Dump localStorage, sessionStorage and cookies to a JSON artifact. format:"playwright" instead emits a real Playwright storageState file, which is what a test loads to start authenticated without replaying the login form.

Inputs: format, save_path, target_id, browser_id.

storage.getA
Read-only

Read storage keys in full, optionally parsed as JSON. Pass keys to read several in one round trip.

Inputs: key, keys, kind, as_json, +2 more.

storage.importA

Restore storage and cookies, the counterpart to storage.export. Pass a whole export payload as state to put a logged-in session back without replaying the login form, or items/cookies to set state piecemeal.

Inputs: kind, items, state, cookies, +3 more.

storage.indexeddb.clearC

Empty an IndexedDB object store.

Inputs: database (required), object_store (required), target_id, browser_id.

storage.indexeddb.databasesC
Read-only

IndexedDB database names for the page origin.

Inputs: target_id, browser_id.

storage.indexeddb.delete_databaseC

Delete an entire IndexedDB database.

Inputs: database (required), target_id, browser_id.

storage.indexeddb.describeC
Read-only

Object stores, key paths and indexes of one IndexedDB database.

Inputs: database (required), target_id, browser_id.

storage.indexeddb.putC

Write a record into an IndexedDB object store (executed through the page's own IndexedDB API).

Inputs: database (required), object_store (required), key, value, +2 more.

storage.indexeddb.queryC
Read-only

Page through records in an IndexedDB object store.

Inputs: database (required), object_store (required), skip, index, +3 more.

storage.listC
Read-only

List localStorage or sessionStorage entries for the page origin.

Inputs: kind, target_id, browser_id, max_value_chars.

storage.list_cache_entriesC
Read-only

Entries inside one Cache Storage bucket.

Inputs: cache_id (required), skip, limit, target_id, +2 more.

storage.list_cachesC
Read-only

Cache Storage buckets for the origin.

Inputs: target_id, browser_id.

storage.list_cookiesB
Read-only

All browser cookies, filterable by domain or name.

Inputs: name, browser_id, domain_contains.

storage.removeB

Delete storage keys. Pass keys to clear several in one call.

Inputs: key, keys, kind, target_id, +1 more.

storage.setC

Write a localStorage or sessionStorage value.

Inputs: key (required), value (required), kind, target_id, +1 more.

storage.snapshotA
Read-only

Local and session storage inline, optionally narrowed to a key prefix. Use for app-scoped state (feature flags, tour progress); pair with storage.import to restore it.

Inputs: kind, prefix, target_id, browser_id, +1 more.

storage.usageB
Read-only

Storage usage and quota for the origin, broken down by storage type.

Inputs: target_id, browser_id.

time.clear_fixed_dateC

Stop pinning Date.

Inputs: target_id, browser_id.

time.freezeA

Pin the clock at an instant and stop timer progression until time.run, time.jump or time.resume.

Inputs: at, target_id, browser_id.

time.installA

Install a controlled clock over Date, setTimeout, setInterval, requestAnimationFrame and performance.now, optionally starting at a given time. Survives navigation.

Inputs: time, target_id, browser_id.

time.jumpA

Leap forward, firing each due timer at most once: the "closed the laptop for three hours" case. Different bug class from time.run.

Inputs: duration (required), target_id, browser_id.

time.resumeC

Let the controlled clock run in real time again.

Inputs: target_id, browser_id.

time.runA

Advance the clock and fire every timer that comes due, in order. Use this to exercise intervals and timeouts without waiting: time.run("30m") on a 60s interval fires it 30 times.

Inputs: duration (required), target_id, browser_id.

time.set_fixed_dateA

Make Date.now() and new Date() always return one instant, while timers, animations and polling keep running normally.

Inputs: time (required), target_id, browser_id.

time.set_wall_clockC

Move perceived wall time to an instant without firing the timers in between.

Inputs: time (required), target_id, browser_id.

time.statusB
Read-only

Whether a controlled clock is installed, how far it is skewed from real time, and how many timers are pending.

Inputs: target_id, browser_id.

time.uninstallA

Remove the controlled clock and restore the real timer functions.

Inputs: target_id, browser_id.

time.virtualC

Chromium native virtual time, which also governs loading and rendering. Stronger but experimental; cannot be combined with the controlled clock.

Inputs: policy, budget_ms, target_id, browser_id, +1 more.

user_state.setB

Emulate an idle user or a locked screen, for apps that change behaviour when nobody is there.

Inputs: reset, target_id, browser_id, user_active, +1 more.

workflow.deleteC

Delete a saved workflow.

Inputs: name (required).

workflow.listB
Read-only

Saved workflows, with their step counts and variables.

Inputs: no named parameters.

workflow.runA

Replay a saved workflow, substituting variables. Each step is checked against what browserd observed (landed_characters, observed_change), so a run that did nothing is reported as a failure rather than success. Unsupplied vars fall back to WORKFLOW_VAR_ in the environment, which keeps credentials out of the saved file.

Inputs: name (required), vars, dry_run, continue_on_error.

workflow.saveA

Save a named, parameterised sequence of tool calls for replay. Use {{var}} anywhere in a step argument. Snapshot refs are refused: they are only valid for the snapshot that produced them, so save a selector, xpath or text locator instead.

Inputs: name (required), steps (required), vars, description.

workflow.showC
Read-only

The full saved definition of one workflow.

Inputs: name (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 239 tools

    Disambiguation4/5

    Despite 239 tools, the dotted family namespacing (page.*, dom.*, css.*, network.*, debugger.*, profiler.*, storage.*, fault.*, time.*) makes almost every tool's purpose distinct, and descriptions explicitly disambiguate near-neighbours (page.click vs app.diagnose_interaction, page.screenshot vs page.filmstrip, time.run vs time.jump). A few genuine overlaps remain: profile.start/stop vs profiler.cpu.start/stop, js.list_scripts vs debugger.list_scripts, storage.list vs storage.snapshot, and page.extract_text vs doc.save, where an agent must read carefully to pick correctly.

    Naming Consistency5/5

    The convention is uniform throughout: family.subfamily.verb_noun in lowercase snake_case (network.get_body, storage.indexeddb.query, profiler.trace.long_tasks, fault.replace_response). Verb-only gestures inside page.* (click, hover, drag, pinch) are a coherent sub-pattern rather than a break, and no camelCase or mixed-style names appear anywhere in the surface.

    Tool Count1/5

    239 tools is far past any usable surface for an agent, roughly an order of magnitude beyond the 3-15 sweet spot and well past the 50-tool threshold for an extreme mismatch. Even granting that browser automation, debugging, profiling, fault injection, QA recording and doc crawling are genuinely broad domains, the set forces the agent to navigate a catalogue rather than choose a tool.

    Completeness5/5

    Coverage is exhaustive across every inferred sub-domain: full CRUD for storage, cookies, IndexedDB, caches, documents, workflows, credentials, artifacts and skeletons; complete debugger and profiler lifecycles; and lifecycle tools for browsers, tabs and targets. Even recovery paths (page.reset_target, browser.reveal, environment.reset, fault.test) and self-documentation (guide.*) are present, leaving no obvious dead ends.

    Maintenance

    ActivityActive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Observation-first MCP server for Cockroach Browser, enabling AI agents to snapshot, audit, and propose browser actions through a secure, policy-controlled daemon.
      184 npm
      9
      AGPL 3.0
    • A
      license
      B
      quality
      C
      maintenance
      A CDP-native MCP server that lets AI agents drive a real Chrome browser with deep network/console inspection, robust page interaction, and the ability to reverse-engineer a site's API flow into runnable code with dependency chaining and replay verification.
      52
      22 npm
      3
      MIT
    • F
      license
      A
      quality
      B
      maintenance
      An MCP server that enables remote observation and control of a Chromium browser via a WebSocket relay, supporting DOM, CDP, and native OS automation for local or LAN-based AI agents.
      8
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents and clients to control a real Chromium browser through MCP tool calls, including navigation, clicking, typing, JavaScript evaluation, screenshots, and DOM snapshots. Supports multiple isolated sessions over authenticated HTTP with no disk writes.
      Apache 2.0