browserd
browserd
Ein kontinuierlich aufzeichnender Chromium mit programmierbaren DevTools, über MCP für KI bereitgestellt.
Kein „Playwright, das von einem LLM gesteuert wird“ — sondern ein Browser-Daemon, der alles aufzeichnet, was er sieht, damit dein Agent nach Traffic fragen kann, der passiert ist, bevor du überhaupt daran gedacht hast zu fragen.
Was das eigentlich ist
Die meisten Browser-MCP-Server kapseln Playwright und lassen ein Modell Dinge anklicken. Das ist ein kleiner Teil dessen, was ein Entwickler mit einem geöffneten Browser tut.
browserd betreibt einen echten, sichtbaren Chromium, den du selbst nutzen kannst, während ein Agent ihm über die Schulter schaut. Er hält eine persistente CDP-Verbindung, zeichnet Netzwerk, Konsole, Ausnahmen und Navigationen kontinuierlich auf und speichert sie in SQLite. Wenn das Modell schließlich eine Frage stellt, fragt es eine Datenbank ab — nicht den Browser.
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)Der Unterschied ist entscheidend. Frag einen normalen Browser-Automation-MCP „Warum ist der Checkout fehlgeschlagen?“ und er hat nichts — die Anfrage ist weg. Frag browserd und er hat die Payload, den Antworttext, den Konsolenfehler, den Stack-Trace und die genaue Quelltextzeile.
Related MCP server: browser-for-ai
Was dein Agent tun kann
Sehen | Screenshots (Viewport / ganze Seite / Element), die als echte Bildblöcke zurückgegeben werden. Accessibility-Snapshots mit stabilen |
Handeln | Klicken, Hover, Tippen, Tastenkombinationen, Scrollen, Auswählen, Hochladen, Dialoge behandeln. Fällt unter Geräteemulation auf Touch-Dispatch zurück. |
Netzwerk | Jede Anfrage mit allen Headern (einschließlich dessen, was tatsächlich über die Leitung ging), Anfrage-Payloads, Antworttexte, Verursacher, Timings, Redirect-Ketten, WebSocket-Frames. Die Aufzeichnung wird aktiviert, bevor das erste Seiten-Skript läuft. |
Konsole |
|
DOM / CSS | Strukturelle Übersichten, die vollständige Kaskade, wie DevTools sie anzeigt, und |
Debugger | Echte Breakpoints mit Bedingungen, Step-by-Step-Ausführung, Aufruf-Frames, Scope-Ketten, Evaluate-on-Frame. Lies eine lokale Variable von einem pausierten Stack. |
Speicher | localStorage, sessionStorage, Cookies, IndexedDB (lesen und schreiben), Cache Storage, Kontingente. |
Profiling | CPU-Sampling, JS-Coverage, auf die Festplatte gestreamte Traces, Heap-Snapshots mit Diffing auf Konstruktor-Ebene für die Suche nach Lecks, Prozess-/CPU-Informationen. |
Simulation | Eine gesteuerte Uhr, Zeitzone, CPU-Throttling, Netzwerkbedingungen, Geräteemulation, Geolokalisierung, Sehschwächen und Fehlerinjektion. |
Die Dinge, die man nicht erwartet
Zeitreise. time.run("30m") stellt die Uhr vor und feuert jeden Timer, der fällig wird — ein 60-Sekunden-Intervall feuert 30-mal, sofort. time.jump("30m") springt vorwärts und feuert jeden Timer einmal — der Fall „Laptop für drei Stunden zugeklappt“. Verschiedene Fehlerklassen, verschiedene Werkzeuge.
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 inspectFehlerinjektion. Frag: „Was macht die UI, wenn Speichern 20 Sekunden dauert?“ und finde es dann tatsächlich heraus.
fault.delay({ url: "**/api/save", delay: "20s" })
fault.replace_response({ url: "**/api/user", status: 500, body: {...} })
fault.drop_next({ url: "**/api/payment", count: 1 })Leck-Suche. Zwei Heap-Snapshots und ein Diff, nach Konstruktor aufgeschlüsselt, mit abgetrennten DOM-Knoten — die klassische Leck-Signatur.
Mensch-↔-KI-Übergabe. inspector.pick aktiviert die echte DevTools-Elementauswahl, sodass du auf das kaputte Ding klickst; der Agent liest einen Node-Handle zurück. page.highlight funktioniert in die andere Richtung.
Installation
Erfordert Node ≥ 20.11. Chromium wird aus Playwrights gebündeltem Build aufgelöst, falls vorhanden (branded Chrome 137+ hat --load-extension entfernt; der gebündelte Build hat es noch), andernfalls aus einer Systeminstallation.
git clone <your-remote> browserd && cd browserd
npm install
npm run buildBei deinem MCP-Client registrieren
node scripts/install-mcp.mjsDies erkennt Claude Desktop, Claude Code, Codex CLI, Cursor, Windsurf und VS Code, fügt sich in deren bestehende Konfiguration ein (wobei zuerst eine .bak geschrieben wird) und überschreibt niemals andere Server.
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 insteadUnterstützte Clients: Claude Desktop, Claude Code, Codex CLI, Cursor, Windsurf, VS Code. Codex verwendet [mcp_servers.browserd]-TOML-Abschnitte anstelle von JSON; der Installer bearbeitet diese Datei chirurgisch, sodass Kommentare und deine anderen Einstellungen erhalten bleiben.
Dann bestätige, dass jeder Client es tatsächlich starten kann:
npm run verify-mcp OK Claude Code 174 tools advertised
OK Codex CLI 174 tools advertised
OK VS Code 174 tools advertisedDies liest die echten Konfigurationsdateien und führt einen MCP-Handshake mit dem durch, was sie angeben, sodass ein veralteter Pfad oder ein handschriftlich bearbeiteter Eintrag erkannt wird, statt als funktionierend angenommen zu werden.
Oder füge es von Hand hinzu:
{
"mcpServers": {
"browserd": {
"command": "node",
"args": ["/absolute/path/to/browserd/dist/cli.js"]
}
}
}Starte deinen Client neu. Es muss kein Browser geöffnet sein — der erste Tool-Aufruf, der einen benötigt, startet ihn.
Ausprobieren
Frag deinen Agenten:
Öffne news.ycombinator.com, zeig mir einen Screenshot, und sag mir dann jede Anfrage, die länger als 500ms gedauert hat, und was die langsamste zurückgegeben hat.
Oder, für die vollständige Vorstellung:
Geh zu meiner App auf localhost:3000, klicke auf Checkout, und sag mir, warum sie fehlschlägt.
Es wird den Fehler per Screenshot festhalten, den Konsolenfehler lesen, die fehlgeschlagene Anfrage finden, dir die Payload und den 400-Antworttext zeigen, die geladenen Quellen nach der aufrufenden Funktion durchsuchen und dir die Datei und Zeile übergeben.
Den Daemon direkt ausführen
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 --helpFlag | Bedeutung |
| HTTP-Port (Standard 7331; |
| HTTP-Bind-Adresse (Standard |
| Profil, das von automatisch gestarteten Browsern verwendet wird |
| Automatisch headless starten. Standard ist ein sichtbares Fenster, das du ebenfalls nutzen kannst |
| Nie implizit starten; |
|
|
Env: AGENTBROWSER_HOME, AGENTBROWSER_PORT, AGENTBROWSER_LOG_LEVEL, AGENTBROWSER_HEADLESS.
Der HTTP-Modus bindet nur an Loopback und validiert Origin — dieser Endpunkt ist vollständige Browserkontrolle, und eine Seite im offenen Web darf ihn nicht erreichen können.
Zwei Designregeln
1. Erst aufzeichnen, dann abfragen
Chromium pusht Ereignisse; der Daemon persistiert sie. Es muss nichts im Voraus aktiviert werden, und kein Ereignis wird verpasst, während das Modell nachdenkt. Der Verlauf übersteht Navigation, Schließen des Tabs und Neustart des Daemons.
Das ist tragend: Kollektoren abonnieren CDP-Ereignisse, bevor sie die Domain aktivieren, und der Ziel-Manager hält neue Ziele bei waitForDebuggerOnStart zurück, bis die Instrumentierung live ist. Das macht „wir haben die Anfrage nicht verpasst“ wahr statt nur wahrscheinlich.
2. Große Payloads gelangen nie in den Kontext
Eine 200-MB-Antwort wird als content-addressed Blob gespeichert und als Artefakt-Handle zurückgegeben. Der Agent liest sie mit artifact.search, artifact.read_lines oder artifact.json_query (einer JSONPath-Teilmenge). Gleiches gilt für Traces, Heap-Snapshots, DOM-Dumps und Konsolenexporte.
Werkzeuge sind von Natur aus query-first: dom.summary vor dom.get_html, network.summarize vor network.list_requests, js.search_source vor js.get_source.
Mensch und KI in einem Browser
Der Browser ist sichtbar und gehört dir. browser.set_control_mode legt fest:
mode | Bedeutung |
| KI liest alles, ändert nichts |
| beide steuern (Standard) |
| KI besitzt die Eingabe |
| KI eingefroren; Lesen funktioniert weiterhin |
Jedes mutierende Werkzeug prüft dies — einschließlich der rohen cdp.send-Notluke.
Die Tool-Oberfläche
174 Tools. node dist/cli.js --tools listet alle auf.
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 methodTesten
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 sitesJede Suite startet den tatsächlichen Server und verbindet einen echten MCP-Client — Assertions laufen über tools/call, sodass Schema-Validierung, Handler-Verdrahtung und Operationen gemeinsam abgedeckt sind.
Sie prüfen Verhalten, nicht dass ein Aufruf zurückgekehrt ist:
die Anfrage-Payload und der Antworttext einer 400er-Antwort sind beide lesbar
eine 700-KB-Antwort kommt als Artefakt mit ~500 Zeichen inline zurück
time.run("30m")feuert ein 60-Sekunden-Intervall exakt 30-mal;time.jumpfeuert es einmaleine lokale Variable wird von einem pausierten Aufruf-Frame gelesen (
total=75,tax=15)Der
observe-Modus verweigert 3/3 Mutationen, erlaubt aber Lesezugriffeein exportiertes HAR lässt sich wieder als gültiges HAR 1.2 parsen
ein Heap-Snapshot lädt als echte
.heapsnapshot
tests/deep-dive.mjs läuft gegen das Live-Hacker-News: 14 echte Anfragen mit h2/nginx/Remote-IP-Detail aufgezeichnet, ein 34-KB-Antworttext von der Leitung gelesen, 1285-Knoten-DOMSnapshot, 1603-Knoten-Accessibility-Baum und ein erkanntes 8-MB-Heap-Delta.
Aufbau
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.mjsMCP ist eine Schnittstelle zum Daemon, nicht der Daemon selbst. src/index.ts exportiert den Kern, sodass eine CLI, eine REST-Ebene oder eine Test-Harness ihn direkt steuern können.
Daten liegen in ~/.agent-browser (AGENTBROWSER_HOME zum Verschieben): browserd.db, blobs/, artifacts/, profiles/, logs/.
Sicherheitshinweise
Nur an Loopback binden. Dieser Endpunkt ist vollständige Kontrolle über einen Browser, der deine angemeldeten Sitzungen enthält.
Browser-Profile unter
~/.agent-browser/profilesenthalten Cookies und Session-Tokens. Aufgezeichnete Bodies enthalten das, was die von dir besuchten Seiten zurückgegeben haben. Beides ist gitignored; belass es dabei.--net-log-capture-mode=Everythingkann Rohbytes von der Leitung enthalten. Verwende es nur bei Datenverkehr, der dir gehört.cdp.sendist uneingeschränktes CDP, nur durch den Kontrollmodus abgesichert.
Bekannte Grenzen
Die Live-Bearbeitung per
Debugger.setScriptSourceist aus dem aktuellen Chromium entfernt — Quelle bearbeiten und neu laden.Network.getRequestPostDatakann Dateien aus Multipart-Uploads auslassen, daher ist "jedes Byte jedes Uploads" allein über diesen Pfad nicht garantiert. Starten Sie mitcapture_netlogfür Details auf Stack-Ebene (DNS, Sockets, TLS).Die gesteuerte Uhr ist ein Fake-Timer-Shim, der über
addScriptToEvaluateOnNewDocumentinstalliert wird, nicht über die Clock-API von Playwright, da der Daemon rohes CDP spricht.time.virtuallegt Chromiums eigene Virtual-Time-Richtlinie offen; die beiden können nicht auf einem Ziel kombiniert werden, und der Daemon weigert sich, sie zu stapeln.Die Touch-Emulation setzt
Emulation.setEmitTouchEventsForMousebewusst nicht: dieses Flag bewirkt, dass Chromium dauerhaft aufhört,Input.dispatchMouseEventzu bestätigen.page.clickerzeugt stattdessen Taps.ontouchstart in windowwird bei der Dokumenterstellung entschieden, erscheint also nach einem Neuladen.navigator.maxTouchPointsist sofort live.Target.openDevTools(devtools.open) ist experimentell und einige Builds lehnen es ab.Sensor-Emulation ist nicht implementiert. Rohes Lesen/Schreiben von Prozessspeicher liegt außerhalb des Rahmens — das erfordert einen separaten Debugger-Adapter.
Lizenz
MIT
Available Tools
239 toolsapp.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_stateARead-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.exportBRead-only
Copy an artifact to a path on the daemon host, for tooling outside this session.
Inputs: path (required), artifact_id (required).
artifact.json_queryARead-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.listCRead-only
Stored artifacts: bodies, screenshots, traces, heap snapshots, exports.
Inputs: kind, label, limit, browser_id.
artifact.readBRead-only
Bounded byte-range read. Use encoding "base64" for binary artifacts.
Inputs: artifact_id (required), length, offset, encoding.
artifact.read_linesBRead-only
Read a line window from a text artifact, 1-indexed and inclusive.
Inputs: artifact_id (required), end, start.
artifact.searchBRead-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.statCRead-only
Size, mime, checksum and origin of one artifact.
Inputs: artifact_id (required).
attention.analyzeARead-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.compareARead-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.listARead-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_targetsARead-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.statusARead-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.bundleARead-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.exceptionsCRead-only
Uncaught exceptions only, with stack traces.
Inputs: limit, order, since, stack, +6 more.
console.exportBRead-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.queryBRead-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.listARead-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.computedBRead-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_visibilityARead-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_textCRead-only
Source text of one stylesheet, stored as an artifact.
Inputs: style_sheet_id (required), save_path, target_id, browser_id.
css.list_stylesheetsCRead-only
Stylesheets loaded by the document, with rule counts and cross-origin status.
Inputs: target_id, browser_id.
css.matched_rulesARead-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_framesBRead-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_objectBRead-only
Expand a remote object or scope handle into its properties.
Inputs: object_id (required), target_id, browser_id, own_properties_only.
debugger.list_breakpointsCRead-only
Breakpoints currently set.
Inputs: target_id, browser_id.
debugger.list_scriptsBRead-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_pauseBRead-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.crawlsARead-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.getARead-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.searchARead-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.exportARead-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_htmlBRead-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.inspectBRead-only
Everything about one element: attributes, computed box, visibility, a stable selector path and its markup.
Inputs: nth, ref, text, xpath, +5 more.
dom.queryBRead-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.summaryARead-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.statusBRead-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.listARead-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.testARead-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.listARead-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.orientARead-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.searchARead-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.toolARead-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.topicARead-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_treeCRead-only
Full accessibility tree, as a screen reader would traverse it.
Inputs: max_nodes, save_path, target_id, browser_id.
inspector.childrenCRead-only
Direct children of an element with sizes and text.
Inputs: nth, ref, text, limit, +6 more.
inspector.elementBRead-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.parentsBRead-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.pickedARead-only
The element the human last picked, as a backend_node_id usable by every element-taking tool.
Inputs: target_id, browser_id.
inspector.snapshotBRead-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_sourceCRead-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_scriptsCRead-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_sourceBRead-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.candidatesARead-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.checkARead-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.compareARead-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.usageCRead-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_harCRead-only
Export the matching requests as a HAR artifact, optionally with bodies embedded.
Inputs: since, until, save_path, target_id, +4 more.
network.get_bodyBRead-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_requestARead-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_requestsARead-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_websocketsBRead-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.probeARead-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_bodiesBRead-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.summarizeARead-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_messagesBRead-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.expectBRead-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_textBRead-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.filmstripARead-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.historyBRead-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_dialogsBRead-only
JavaScript dialogs (alert/confirm/prompt/beforeunload) currently blocking the page.
Inputs: target_id, browser_id.
page.list_framesARead-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_tabsARead-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.new_tabC
Open a new tab, optionally at a URL.
Inputs: url, activate, browser_id.
page.observeARead-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.screenshotARead-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.snapshotARead-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_forARead-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.metricsCRead-only
Runtime performance counters: heap, nodes, listeners, layout and script durations.
Inputs: target_id, browser_id.
performance.processesARead-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.analyzeBRead-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_tasksBRead-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.statusCRead-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.evidenceARead-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_statusARead-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_draftBRead-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_eventsBRead-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.stepsBRead-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.listCRead-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.statusARead-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.emitARead-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.listBRead-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.showCRead-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.exportARead-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.getARead-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.databasesCRead-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.describeCRead-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.queryCRead-only
Page through records in an IndexedDB object store.
Inputs: database (required), object_store (required), skip, index, +3 more.
storage.listCRead-only
List localStorage or sessionStorage entries for the page origin.
Inputs: kind, target_id, browser_id, max_value_chars.
storage.list_cache_entriesCRead-only
Entries inside one Cache Storage bucket.
Inputs: cache_id (required), skip, limit, target_id, +2 more.
storage.list_cachesCRead-only
Cache Storage buckets for the origin.
Inputs: target_id, browser_id.
storage.list_cookiesBRead-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.set_cookieB
Set a cookie. Provide url or domain so Chromium knows where it belongs.
Inputs: name (required), value (required), url, path, +6 more.
storage.snapshotARead-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.usageBRead-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.statusBRead-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.listBRead-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.showCRead-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
Scored across 239 tools
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.
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.
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.
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
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
Real Chrome for coding agents over MCP: browse, replay playbooks, human takeover, HIPAA & BAA.
A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,
Give AI agents a real cloud Chrome: open sessions, navigate, read pages, click, type and screenshot.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceObservation-first MCP server for Cockroach Browser, enabling AI agents to snapshot, audit, and propose browser actions through a secure, policy-controlled daemon.184 npm9AGPL 3.0
- AlicenseBqualityCmaintenanceA 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.5222 npm3MIT
- FlicenseAqualityBmaintenanceAn 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-
- AlicenseNot gradedqualityDmaintenanceEnables 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