browser-link
v1.4.78MCP server that bridges Claude Code, OpenCode, GitHub Copilot CLI and other MCP clients to a Chrome tab.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
browser.list_tabs
List Chrome tabs currently reachable by browser-link. A tab is normally connected only after the user clicks Connect in the extension popup. Each entry includes tab_id, url, title, claimed_by (null when free, or { agent_id, pid, binary, label?, claimed_at, last_activity_at } when another agent owns it), claimed_by_me (true when YOU hold the claim), an optional map field ({ app_key, entries, flows }) present ONLY when the persistent UI map already has data for that tab's origin, and — only when the user has enabled AND granted cdp-direct mode (off by default, see the cdp-direct docs) — addi…
browser.claim_tab
Claim a tab so other agents stop touching it. Returns ok:true with your claim, or ok:false reason:"conflict" with the existing claim. Pass an optional label (eg "claude-code") that other agents will see in browser.list_tabs. Pass ttl_minutes (capped at 60) — the claim auto-expires after that many minutes of inactivity. Without ttl_minutes the claim follows the console setting claim-ttl (10 minutes unless the user changed it), read on every check; when the user set it to never, the claim reports ttl_ms: null and only a release, your disconnect or a reset ends it. A running browser.flow you la…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
label | string | Optional self-declared display label (eg "claude-code", "opencode"). Visible to other agents in browser.list_tabs. Display only — not used for enforcement. |
task | string | Optional name of the task you are starting (eg "checkout-test"), separate from label: 1 to 64 characters of letters, digits, space, ".", "_" or "-", refused otherwise. Stored on the activity trail as… |
ttl_minutes | number | Inactivity timeout for the claim, in minutes, capped at 60. Without it the claim follows the console setting claim-ttl (10 minutes unless the user changed it, or never). |
browser.release_tab
Release a tab claim you hold. Returns ok:true on success, ok:false reason:"not-owner" if another agent holds it, or ok:false reason:"not-claimed" if the tab is free. Releasing is also automatic on agent disconnect and when the inactivity TTL elapses, so calling this explicitly is only needed for early hand-off.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string |
browser.my_tabs
List the tabs YOU currently hold a claim on. Returns { claims: [{ tab_id, claimed_at, last_activity_at, ttl_ms, label? }] } sorted by claimed_at. Use this to answer the user when they ask which tabs you are working on.
browser.manual
The browser-link manual on demand; needs no tab. No arguments: the index (server version, the instructions-block status per client, one line per tool, the topic list). { tool: "browser.click" }: that tool's full doc (purpose, when to use, gotchas, example) plus one line per parameter. { topic: "downloads" }: one hand-written topic. Pass at most one of tool or topic; an unknown name fails listing the valid ones.
| Parameter | Type | Description |
|---|---|---|
tool | string | A tool name, e.g. "browser.click". Mutually exclusive with topic. |
topic | string | A topic name: downloads, canvas, screenshot, flows, map, token-efficiency, multi-agent, cdp-direct, results. Mutually exclusive with tool. |
browser.ping
Verify the bridge to a tab. Returns its current title and url.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string |
browser.snapshot
Snapshot of the tab: title, url, visible text (truncated) and a list of interactive elements (buttons, links, inputs, selects, textareas) with a CSS selector and labels. Use this to understand page state before clicking or typing. Elements whose computed `pointer-events` is `none` (invisible accessibility layers that can never receive a real click) are excluded from the interactive list, though their text still contributes to headings/text; a descendant that re-enables itself with `pointer-events:auto` is still listed. The scan pierces OPEN Shadow DOM roots and same-origin iframes (nested arbi…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
exclude | array | Drop interactive elements and headings that live inside any of these landmark tags. Common case: pass `["nav"]` to skip site-wide navigation that repeats on every page. |
max_interactive | number | Cap on the number of interactive entries returned. Default 120, hard ceiling 500. `0` returns no interactive entries and counts them all in `truncated.interactive`; a negative or non-number value fall… |
offset | object | Where each part starts: pass `truncated.next_offset` of a cut result to get the rest (entries for interactive and headings, characters for text). Default 0 for each part. |
only_interactive | boolean | When true, skip the headings list and the visible-text dump. Use when you only need the interactive elements and selectors. Default false. |
since | string | The `snapshot_id` of an earlier snapshot of this document. Format `<doc_id>:s<N>`. Returns only `added`, `removed` and `changed` entries (by `ref`) against it; when it cannot diff, returns the full sn… |
within_selector | string | Restrict the scan to elements within the subtree of this CSS selector. When the selector does not match, the response carries an empty interactive list and `notice` explains why. |
browser.find
Locate ONE interactive element by its visible text and return a stable selector plus viewport coordinates. The match is case-insensitive substring by default (set `exact:true` for full-string equality). A match lands on the element that carries the text: buttons, links, inputs, contenteditable fields and roles named by their content keep matching themselves (a `<button><span>Save</span></button>` is the button), while any other `[role]`, `[onclick]` or `[tabindex]` element (a page container, a region, a dialog) matched only through text a descendant holds gives way to that descendant, or to th…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
exact | boolean | When true, the visible text must equal the needle (case-insensitive). Default false (substring). Text mode only. |
key | object | Semantic key (`semantic_key` from a previous find, or from a browser.map.recall entry payload): finds the element with this role and accessible name, disambiguated by `path` when given. Not combinable… |
offset | object | Where the `multiple-matches` candidate list starts: pass `truncated.next_offset` of a cut answer to list the rest. Default 0. Text mode only. |
ref | string | Element ref (`<doc_tag>:e<N>`) from browser.snapshot / find / state for the current document. Not combinable with `text`, `role`, `exact` or `key`. |
role | string | Optional ARIA role to narrow the scan (text mode only). Without role the scan covers all common interactive elements including [onclick] divs. |
text | string | Visible text to match. Matched against innerText, aria-label, value, placeholder, or title — whichever the element exposes first. Case-insensitive substring by default. Required unless `ref` or `key… |
browser.state
Compact orientation snapshot — cheaper than a full browser.snapshot when the agent only needs to know where it is. Returns { url, title, viewport:{w,h}, focused?, dialogs?, scroll? }. `focused` is the innermost actually-focused element (descending through open Shadow DOM roots and same-origin iframes past `document.activeElement`, which by itself only reports a shadow host or an <iframe> element) as `{ selector, ref?, tag, ambiguous? }`. `dialogs` lists visible `[role=dialog]`, `[role=alertdialog]` and open `<dialog>` elements as `{ selector, role, label? }`, `label` best-effort from aria-la…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string |
browser.canvas_screenshot
Capture a `<canvas>` element from the connected tab as a PNG/JPEG and return it base64-encoded. Designed for pages whose visible UI is rendered to a canvas — Qt for WebAssembly (Venus OS, Felgo apps), WebGL games, custom rendering, etc. — where `browser.snapshot` and `browser.find` return nothing useful because there is no DOM inside the canvas to inspect. The finder traverses nested Shadow DOM roots, so a canvas hidden behind one or more `attachShadow` boundaries (very common in Qt-WASM apps) is still reachable without passing an explicit selector. Pass `selector` only when several canvas…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
format | string | Output format. PNG (default) is lossless and larger; JPEG is smaller but lossy and drops the alpha channel. Pick PNG for fidelity, JPEG when you need to ship many screenshots cheaply. |
region | object | Optional crop rectangle in canvas pixels (NOT CSS pixels — canvas pixels are `canvas.width` x `canvas.height`, which may differ from the rendered CSS size on HiDPI). Coordinates outside the canvas a… |
selector | string | Optional CSS selector. When omitted, the finder picks the first visible canvas in the document, descending into Shadow DOM roots. Pass it only when several canvases coexist and you want to disambiguat… |
browser.screenshot
Take a real screenshot of a tab and return it as an MCP image (plus a JSON text block with the metadata). `mode: "viewport"` (default) captures what is visible now; `mode: "full_page"` captures the WHOLE document from top to bottom in one image, without scrolling or stitching; `mode: "element"` captures one element (pass `selector`; the same deep Shadow DOM / same-origin iframe search as click/find, scrolled into view first). Unlike `browser.canvas_screenshot` this renders the page as the browser paints it, so it works on any page, not just a `<canvas>`. Returns `{ ok, mode, format, width, hei…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
format | string | Output format. PNG (default) is lossless; JPEG is much smaller for photo-heavy pages. If a PNG exceeds the ~8 MB cap the tool retries as JPEG automatically (reported in `format` and `size_reduced`). |
max_dimension | integer | Longest side of the output image in pixels (default 8000). Larger regions are scaled down to fit; pages so tall that the scale would drop below 0.25 are cropped instead and flagged `truncated: true`. |
mode | string | What to capture. "viewport" (default): the visible area. "full_page": the entire scrollable document. "element": the element matched by `selector`. |
quality | integer | JPEG quality 0-100 (default 80 when JPEG is used). Ignored for PNG. |
selector | string | CSS selector of the element to capture. Required for mode "element"; rejected for the other modes. |
browser.console
Return recent console messages (log, info, warn, error) from the connected tab since it was attached. Rolling buffer (last 200). Each entry reports its level in this same vocabulary (the "warning" Chrome reports is stored as "warn", "verbose" as "debug"), so `level` filters exactly what the entries show.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
level | string |
browser.network
Return recent network requests from the connected tab (rolling buffer, last 200). Includes request_id, method, url, status, mime, size, timing. Use browser.network_body to fetch the body of a specific request.
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
headers | boolean | Include request_headers and response_headers in each entry. Default true. Pass false to drop them and save tokens when status, url and timing are enough. |
url_filter | string | Optional substring to filter request URLs. |
browser.network_body
Fetch the response body of a single network request by request_id (from browser.network).
| Parameter | Type | Description |
|---|---|---|
request_id * | string | |
tab_id * | string |
browser.wait_for
Wait for a condition to become true on the page before continuing. Pick exactly ONE target: (a) `selector` — or `ref`, an element ref from browser.snapshot / find / state, where a ref that no longer resolves counts as a missing element for `hidden` and `detached`; for `visible` and `attached` a ref of another document fails at once with `ref-stale`, and a ref whose node is only gone keeps polling and times out with `reason: "timeout"` plus `ref_gone` — plus an optional `condition` of visible|hidden|attached|detached (default visible), (b) `expression` — any JS that should become truthy,…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
condition | string | For selector or ref mode. visible = exists + non-zero box + opacity > 0; hidden = inverse; attached = exists in DOM; detached = does not exist. Default visible. |
expression | string | JavaScript expression evaluated each poll. wait_for stops as soon as Boolean(expression) is true. Mutually exclusive with selector and network_url. |
network_url | string | Case-insensitive substring matched against the URL of completed network requests in the rolling buffer. wait_for stops when at least one matching request has finished. Mutually exclusive with selector… |
poll_interval_ms | number | Time between checks in ms. Default 100, clamped to [50, 1000]. |
ref | string | Element ref (`<doc_tag>:e<N>`) instead of selector; use with condition. A node replaced by a re-render is re-found by its semantic key (never a look-alike that already existed); a ref that no longer r… |
selector | string | CSS selector. Use with condition. Mutually exclusive with expression and network_url. Resolved like browser.find / browser.click: open Shadow DOM roots and same-origin iframes are searched too. |
timeout_ms | number | Max time to wait in ms. Default 5000, capped at 30000. Past the cap, split the flow — the bridge does not park requests longer than that. |
browser.wait_for_tab
Wait for a new tab opened by a previous action on a connected tab. The extension auto-emits `tab-created` events to the bridge stream whenever a tab connected to browser-link spawns a new one (via window.open, target=_blank, etc.); for a cdp: tab, browser-link watches the browser for the length of this call and emits the same event, with the new cdp: tab_id. This tool polls that stream until it sees a matching `tab-created` event whose `opened_from` equals the `opened_from` you passed (the tab_id of the action originator). On match, browser-link automatically claims the new tab under YOUR agen…
| Parameter | Type | Description |
|---|---|---|
opened_from * | string | The browser-link tab_id whose action is expected to spawn the new tab. Get this from your current tab before clicking the link / button that triggers the new tab. |
timeout_ms | number | Max wait in ms. Default 10000, capped at 60000. |
url_substring | string | Optional case-insensitive substring the new tab URL must contain. Useful when several tabs could spawn and you want a specific one. |
browser.dialog_respond
Respond to a pending native JavaScript dialog (alert / confirm / prompt / beforeunload) on a connected tab. browser-link does NOT auto-dismiss dialogs — when a dialog opens, the page JS thread freezes and the bridge emits a `dialog-opening` event in browser.events with `{ tab_id, type, message, default_prompt }`. The agent reads that, decides what to answer based on the page flow, and calls this tool. `accept:true` is the "OK" path (submit for prompt, continue for beforeunload); `accept:false` is "Cancel". `prompt_text` is only used for `prompt` type — ignored otherwise. After the response…
| Parameter | Type | Description |
|---|---|---|
accept * | boolean | true = OK / continue (in prompt: submit prompt_text). false = Cancel / dismiss. |
tab_id * | string | |
prompt_text | string | Text to submit when the dialog is a prompt and accept=true. Ignored for alert/confirm/beforeunload. |
browser.set_permission
Grant or deny a browser permission for a given origin BEFORE the page asks for it. Backed by `chrome.contentSettings` (the surface exposed to MV3 extensions — `Browser.setPermission` would need a browser-level CDP target that `chrome.debugger` does not give us). Subsequent page calls to navigator.geolocation / Notification.requestPermission / navigator.mediaDevices.getUserMedia / etc. then return the chosen state without surfacing a native prompt. Scope is per-ORIGIN (URL pattern `<origin>/*`), persistent until you call again or the user clears settings. On a cdp: tab (transport: cdp) it is…
| Parameter | Type | Description |
|---|---|---|
name * | string | Permission name. These are the names `chrome.contentSettings` exposes in MV3. Other CDP permission names (midi, paymentHandler, windowManagement, etc.) are NOT supported by this surface — calling wi… |
origin * | string | Full origin (eg https://example.com or http://127.0.0.1:7373) the permission applies to. Must match exactly what the page reports as its origin. |
state * | string | granted (chrome.contentSettings allow) = page gets the resource silently. denied (block) = page receives a denial silently. prompt (ask) = restore default Chrome behaviour, the page will see the nativ… |
tab_id * | string | A connected tab — used to route the call through its debugger session. The permission itself is applied per ORIGIN, not per tab. |
browser.download
Download a file to disk WITHOUT Chrome's native "Save as" dialog — a dialog nothing in CDP or the page can press, which strands an agent that just clicks a download button. Two modes, pass exactly one: `selector` clicks the element and captures the download the clicked tab starts (Chrome's download is held so it cannot prompt, the file is re-fetched, and Chrome's copy is cancelled and erased only after the file is written; if the fetch or the write fails, or the re-fetch does not match Chrome's download (exact size Chrome reported, type, final URL), nothing is saved, the capture fails and Ch…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
filename | string | Optional plain basename for the saved file ("q3.csv"). Path separators, "..", reserved characters, a trailing dot/space and Windows device names (CON, NUL, COM1, …) are rejected — you choose the n… |
selector | string | CSS selector of the element whose click starts the download (same deep Shadow DOM / same-origin iframe search as browser.click). Mutually exclusive with url. |
timeout_ms | number | Budget in ms SHARED by the click-to-download wait and the fetch: the fetch only gets what the wait left over. Default 30000, max 120000. Worst case before an answer: timeout_ms, plus up to 10s per bri… |
url | string | http(s), blob: or data: URL to download with the page's credentials. A blob: URL must belong to this page's origin and still be alive. Mutually exclusive with selector. |
browser.click
Click an element by CSS selector in the connected tab. The selector usually comes from browser.snapshot or browser.find. The lookup pierces open Shadow DOM roots and same-origin iframes (nested arbitrarily), so a selector for a web-component internal or an in-page iframe works without extra steps. Before dispatching the click, the element is hit-tested at its own click point (starting from its own shadow root / iframe document) — if a different element covers that point, the call returns ok:false with a description of the blocker instead of clicking the wrong thing blindly. Pass `force:true`…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
expect | object | Assert the EFFECT of the action, not just that the page went quiet. After the action dispatches (and settles), the page is polled until every listed condition holds or `timeout_ms` elapses. Unmet: ok:… |
force | boolean | Skip the occlusion guard and dispatch the click even if another element currently covers the click point. Escape hatch for cases where the "covering" element is intentional (e.g. a transparent hit-tar… |
ref | string | Element ref (`<doc_tag>:e<N>`, like `k3x9ab:e12`) from browser.snapshot / find / state for the current document, instead of selector. Exactly one of selector or ref. |
selector | string | CSS selector. Exactly one of selector or ref. |
settle_ms | number | After dispatching the action, wait until the page goes quiet — no DOM mutations for this many consecutive ms — before returning. Folds the wait_for + snapshot round trip most flows need after an a… |
settle_timeout_ms | number | Overall cap on the settle wait in ms, in case the page never goes fully quiet (polling animations, live tickers, spinners). Default 2000, hard ceiling 10000. Ignored when settle_ms is 0. |
browser.type
Focus an input by CSS selector and type text into it. If clear=true, clears the current value first. The lookup pierces open Shadow DOM roots and same-origin iframes, same as browser.click. Optionally waits for the page to settle after typing — see `settle_ms`. Give exactly one of `selector` or `ref` (an element ref from browser.snapshot / find / state), with the same `reresolved` / `ref-stale` behaviour as browser.click. When the target (a `selector`, or a find `key`) has evidence on this app, the result carries `known: { confidence, ok_n, fail_n, last_reason, alternative? }`; `alternative`…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
text * | string | |
clear | boolean | |
expect | object | Assert the EFFECT of the action, not just that the page went quiet. After the action dispatches (and settles), the page is polled until every listed condition holds or `timeout_ms` elapses. Unmet: ok:… |
ref | string | Element ref (`<doc_tag>:e<N>`, like `k3x9ab:e12`) from browser.snapshot / find / state for the current document, instead of selector. Exactly one of selector or ref. |
selector | string | CSS selector. Exactly one of selector or ref. |
settle_ms | number | After dispatching the action, wait until the page goes quiet — no DOM mutations for this many consecutive ms — before returning. Folds the wait_for + snapshot round trip most flows need after an a… |
settle_timeout_ms | number | Overall cap on the settle wait in ms, in case the page never goes fully quiet (polling animations, live tickers, spinners). Default 2000, hard ceiling 10000. Ignored when settle_ms is 0. |
browser.press
Press a single key, optionally with modifiers, using a TRUSTED CDP `Input.dispatchKeyEvent` sequence (`isTrusted: true`) — not a synthetic `KeyboardEvent` dispatched via `browser.evaluate`, which many rich text editors, autocompletes, and non-DOM runtimes (Qt-WASM, WebGL — see browser.canvas_screenshot) silently ignore. `key` accepts a human name (`Enter`, `Escape`, `Tab`, `Backspace`, `Delete`, `ArrowUp`/`ArrowDown`/`ArrowLeft`/`ArrowRight`, `Home`, `End`, `PageUp`, `PageDown`, `Space`), case-insensitive, or a single printable character, case-sensitive (`"a"` vs `"A"`, `"@"`). `modifiers`…
| Parameter | Type | Description |
|---|---|---|
key * | string | Human key name ("Enter", "Escape", "Tab", "Backspace", "Delete", "ArrowUp"/"ArrowDown"/"ArrowLeft"/"ArrowRight", "Home", "End", "PageUp", "PageDown", "Space" — case-insensitive) or a single printabl… |
tab_id * | string | |
expect | object | Assert the EFFECT of the action, not just that the page went quiet. After the action dispatches (and settles), the page is polled until every listed condition holds or `timeout_ms` elapses. Unmet: ok:… |
modifiers | array | Modifier keys held during the press. Combine for shortcuts, e.g. ["Control"] + key:"a" for Ctrl+A, or ["Meta"] + key:"s" for Cmd+S on macOS. |
ref | string | Optional element ref to focus instead of selector. |
selector | string | Optional. Focus this element (resolved via the same deep Shadow DOM / iframe search as browser.click) before dispatching the key. Omit to send the key to the currently focused element. |
settle_ms | number | After dispatching the action, wait until the page goes quiet — no DOM mutations for this many consecutive ms — before returning. Folds the wait_for + snapshot round trip most flows need after an a… |
settle_timeout_ms | number | Overall cap on the settle wait in ms, in case the page never goes fully quiet (polling animations, live tickers, spinners). Default 2000, hard ceiling 10000. Ignored when settle_ms is 0. |
browser.select
Choose one option of a native `<select>` by its `value`, its `label` (the `label` attribute, or the option text; white space collapsed) or its 0-based `index` — exactly one of the three. Typing into a select does not change it and a click on an `<option>` never selects it; this sets the option the way a user's pick is observed by the page: the select is focused, its selection set, then `input` and `change` fire, bubbling (synthetic events, `isTrusted: false`). Give exactly one of `selector` or `ref` (an element ref from browser.snapshot / find / state), with the same deep search and `reresol…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
expect | object | Assert the EFFECT of the action, not just that the page went quiet. After the action dispatches (and settles), the page is polled until every listed condition holds or `timeout_ms` elapses. Unmet: ok:… |
index | integer | The option at this 0-based position in the select's options. |
label | string | The option whose label (label attribute, or text) is this, white space collapsed. |
ref | string | Element ref (`<doc_tag>:e<N>`, like `k3x9ab:e12`) from browser.snapshot / find / state for the current document, instead of selector. Exactly one of selector or ref. |
selector | string | CSS selector of the <select>. Exactly one of selector or ref. |
settle_ms | number | After dispatching the action, wait until the page goes quiet — no DOM mutations for this many consecutive ms — before returning. Folds the wait_for + snapshot round trip most flows need after an a… |
settle_timeout_ms | number | Overall cap on the settle wait in ms, in case the page never goes fully quiet (polling animations, live tickers, spinners). Default 2000, hard ceiling 10000. Ignored when settle_ms is 0. |
value | string | The option whose value is this. Exactly one of value, label or index. |
browser.scroll
Scroll the page, or a container that scrolls, without browser.evaluate. Give exactly one of `to` and `by`. `to` is "top" or "bottom" (the vertical edge; the horizontal position stays), or an element to bring into view: a CSS selector or an element ref from browser.snapshot / find / state (a string shaped `<doc_tag>:e<N>` is read as a ref), found with the same deep search as browser.click (open shadow roots, same-origin iframes) and scrolled into view centred, as click does before it clicks. `by` is `{ x?, y? }` pixels from where it is (positive goes right / down), clamped to the extent. `withi…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
by | object | Pixels from the current position; at least one of x or y. |
expect | object | Assert the EFFECT of the action, not just that the page went quiet. After the action dispatches (and settles), the page is polled until every listed condition holds or `timeout_ms` elapses. Unmet: ok:… |
settle_ms | number | After dispatching the action, wait until the page goes quiet — no DOM mutations for this many consecutive ms — before returning. Folds the wait_for + snapshot round trip most flows need after an a… |
settle_timeout_ms | number | Overall cap on the settle wait in ms, in case the page never goes fully quiet (polling animations, live tickers, spinners). Default 2000, hard ceiling 10000. Ignored when settle_ms is 0. |
to | string | "top", "bottom", or the CSS selector or element ref of an element to bring into view. Exactly one of to or by. |
within | string | CSS selector or element ref of the container that scrolls (a list, a pane) instead of the page. |
browser.drag
Drag an element from a source to a destination. Provide each end as either a CSS selector OR a viewport coordinate pair (x,y). A selector endpoint is resolved through the same deep search snapshot/find/click/type use — it reaches into open Shadow DOM roots and same-origin iframes, with coordinates mapped to the top-level viewport. The drag is interpolated over duration_ms (default 1500) so you can watch the cursor traverse the path — this also helps activation-by-distance constraints in pointer-based libraries. Auto-detects HTML5 native drag (element.draggable, <img>, <a href>) vs pointer-…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
duration_ms | number | Total movement duration in ms. Default 1500. Lower values reduce visual feedback and may miss activation thresholds in some pointer libs. |
from_selector | string | CSS selector of the source element. Mutually exclusive with from_x/from_y. |
from_x | number | Viewport x of the source point. Use with from_y when there is no stable selector (canvas, map, etc). |
from_y | number | Viewport y of the source point. |
hold_before_move_ms | number | Time to stay pressed at the source before starting the move. Default 0. Useful for handlers that require a press-and-hold gesture. |
hold_before_release_ms | number | Time to stay at the destination before releasing. Default 0. Useful when the drop target validates asynchronously. |
to_selector | string | CSS selector of the destination element. Mutually exclusive with to_x/to_y. |
to_x | number | Viewport x of the destination point. |
to_y | number | Viewport y of the destination point. |
browser.flow
Run a declarative sequence of steps (find/click/type/press/wait_for/drag/sleep/read_list/repeat) in ONE round trip instead of one MCP call per step. Steps execute strictly in order and STOP at the first failure (fail-fast) — there is no branching. A `find` step's resolved selector becomes the IMPLICIT TARGET for the very next click/type/press step that omits its own `selector` (an explicit `selector` on that step always overrides it and leaves the implicit target untouched for a later step). `type` and `press` steps that end up with no selector at all — no explicit one, no implicit one —…
browser.flow_status
Progress, outcome and ACTION MANIFEST of one browser.flow run, by its flow_id. Returns { flow_id, tab_id, state, detached, started_at, ended_at?, steps, steps_completed, iterations_completed?, stopped_by?, error?, failed_step?, step_kind?, error_class?, manifest? }. `state` is one of running | completed | cancelled | failed | expired | unknown. A `failed` flow carries `failed_step`, `step_kind` and `error_class` (the class its `failure` had) beside `error`; the flow's `failure` itself is never kept, so it is not here. While a flow is RUNNING you get live progress (steps_completed, iterations_c…
| Parameter | Type | Description |
|---|---|---|
flow_id * | string | The opaque id browser.flow returned for the run you are asking about. |
tab_id * | string |
browser.flow_cancel
Stop a running browser.flow by its flow_id. Cancellation is cooperative and lands within ONE STEP: the runner declines to dispatch the next step rather than interrupting one in flight (an in-flight CDP command cannot be un-sent). Returns the same payload browser.flow_status returns, plus cancel_requested:true — so immediately after the call you will typically see state:"running" with cancelling:true, and a poll a moment later shows state:"cancelled". The flow keeps everything it already did: a cancelled flow is a SUCCESS carrying partial results, never a failure, and its manifest stays reada…
| Parameter | Type | Description |
|---|---|---|
flow_id * | string | The flow to stop. |
tab_id * | string |
browser.evaluate
Run a JavaScript expression in the page context and return its result. Use an IIFE with return if you need multi-step logic. The bridge waits up to `timeout_ms` (default 15000, capped at 60000) for the result — raise it for long-running in-page work instead of splitting one loop across several calls.
| Parameter | Type | Description |
|---|---|---|
expression * | string | |
tab_id * | string | |
as | string | Name this expression in the JS registry right away (kebab-case, at most 40 characters, saying what is returned, no leading get/set/do/run/make). It stays pending until browser.wrap_up keeps it; a bad… |
timeout_ms | number | Max time in ms the bridge waits for the result. Default 15000; values below that floor behave like the default, values above 60000 clamp to 60000 — the bridge does not park a single tool call longer… |
browser.events
Return recent bridge lifecycle events: primary-elected (a new browser-link primary started), tab-registered / tab-disconnected (Chrome tabs joined/left), tab-renamed (the same Chrome tab got a new tab_id, usually after a primary swap), tab-claimed / tab-released / tab-claim-rejected (multi-agent tab ownership changes — see browser.claim_tab), dialog-opening / dialog-closed (a native alert/confirm/prompt/beforeunload started or finished blocking a tab — see browser.dialog_respond), tab-created (a new tab opened from an existing one, e.g. target="_blank" or window.open — see browser.wait_f…
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of events to return (default 20, max 200). |
since_id | number | Only return events with id > since_id. Omit to get the most recent slice. |
browser.activity
Read the persistent activity trail: every browser tool that any agent dispatched, oldest kept for 50k rows, stored on disk in the user's data dir and surviving both browser and server restarts. Each row carries when it ran, which agent ran it (self-declared claim label, e.g. "claude-code" / "opencode", plus pid), the tool, the tab and page URL, the CSS selector it targeted, the payload (typed text, evaluate expression, navigate URL), the outcome and the duration. DISTINCT from browser.events, which is a 200-entry in-memory ring of bridge LIFECYCLE events (tab connected, dialog opened) that die…
| Parameter | Type | Description |
|---|---|---|
agent | string | Only actions by this agent label. The `agents` field of any response lists what exists. |
agent_id | string | Only rows of one agent session (the IPC session id listed in summary.sessions). Both modes. |
flow_id | string | Only the flow_status / flow_cancel calls that addressed this flow (steps inside a flow get no rows of their own). |
include_payloads | boolean | Default true. Set false to get the shape of the trail without typed text, page titles or URL query strings — much cheaper in context when summarising a long run. |
limit | number | Maximum rows to return (default 200, max 500). |
outcome | string | Filter by outcome. "error" is the fast way to find what went wrong. |
since | string | Only rows at or after this ISO timestamp (e.g. "2026-11-09T10:00:00Z"). Both modes. |
since_id | number | Only return rows with id > since_id. Omit for the most recent slice. |
summary | boolean | Return the friction report instead of rows: counts of records and errors, failures by flag (retargeted, ref-stale, expect-failed, timeout, unmatched, not-found, multiple-matches, flow-timeout, downloa… |
tab_id | string | Only actions against this tab. |
tool | string | Only this tool, e.g. "browser.click". |
browser.reset
Soft-reset the bridge state. Drops every connected tab session, releases every claim, and clears the in-memory event log — but does NOT kill the MCP server itself. The user has to re-press Connect in the extension popup for each tab they want back. Use this when the bridge state looks inconsistent (stale tab_ids that browser.events does not explain, tab.click that hangs, claims you cannot release through normal means) and you are sure a clean slate is the right move.
browser.wrap_up
Close the loop before you answer the user after using the browser. Step 1, no arguments: what this session left to decide, per app touched (≤ 2 KB): { step: 1, apps: [{ origin, app_key, build, readers: [{ id, expression (first 160 chars), kind, flags, ok_n, fail_n, result_bytes_avg }], flows_run: [{ session_index, name, saved_name, steps, stopped_by, ok }], selectors, friction, pitfall_candidates: [{ id, sentence }], feedback_candidates }], omitted? }. Step 2, your decisions: { readers: { keep: [{ id, name, template? }], drop: [id] }, flows: { keep: [{ session_index, name }] }, pitfalls: { c…
| Parameter | Type | Description |
|---|---|---|
feedback | array | |
flows | object | |
pitfalls | object | |
readers | object |
browser.read
Read page data without JS. Pass exactly one of name, id or rows. (1) Kept reader: { tab_id, name | id, values?, timeout_ms? } runs a KEPT JS reader of the tab's app instead of writing the expression again; a templated reader needs a value for every <PLACEHOLDER> (inserted as string-literal content, quotes escaped), a missing one fails before anything runs; returns the raw value exactly like browser.evaluate and counts the outcome on the reader. Kept readers are listed in the knowledge start pack (list_tabs / navigate) and in browser.map.recall. (2) Structural read, NOT a kept reader (no JS, no…
| Parameter | Type | Description |
|---|---|---|
tab_id * | string | |
fields | object | Structural read: field name (lowercase letter, then lowercase letters, digits or _; at most 40) → how to read it. Absent: each row is { text }. |
id | integer | Registry id of a kept reader. Instead of name. |
max_bytes | integer | The rows as JSON (UTF-8), default 16384; cuts at a whole row. |
max_chars | integer | Per field value, default 200. |
max_rows | integer | Default 50; 0 = count only. |
min_rows | integer | Structural read: read again until total reaches it, within timeout_ms. |
name | string | Name of a kept reader of this app. |
offset | integer | First row to return. |
rows | string | Structural read: CSS selector, one row per visible match. Instead of name or id. |
timeout_ms | number | Kept reader: same as browser.evaluate (default 15000, capped at 60000). Structural read: how long min_rows may wait (default 0, at most 30000). |
values | object | Kept reader only. Placeholder name → value, e.g. { "CLIENT": "ACME" } for "<CLIENT>". |
visible_only | boolean | Structural read: skip rows that are not visible (default true); total counts what is read. |
within_ref | string | Structural read: only rows inside this element ref. Instead of within_selector. |
within_selector | string | Structural read: only rows inside this element. |
browser.feedback
Tell the browser-link owner that a tool misbehaved or fell short: { tool, observed, expected }, each at most 500 characters. Stored in the owner's local activity database with your session and the app; returns { id, stored: "local" }. Nothing leaves the machine: the owner reviews it with `browser-link feedback` and decides whether to open an issue. You never open one.
| Parameter | Type | Description |
|---|---|---|
expected * | string | What you expected instead. |
observed * | string | What it did, described by shape, not by the page's data. |
tool * | string | The tool, e.g. "browser.find". |
browser.map.recall
Recall what is already known about a browser app/route from the local map DB. Call this first when you arrive at a tab so you can reuse known selectors, flows and gotchas instead of rediscovering them. Pass origin (scheme://host:port). Optionally pass app_key to disambiguate when multiple apps share an origin, and url to filter entries down to a specific pathname. Response sections, in order: `pitfalls` (what does NOT work — read these first), `mechanisms` (how the app behaves underneath), `entries`, `learned` (present only when the map learned something from use: up to 50 `{ target, target_…
| Parameter | Type | Description |
|---|---|---|
origin * | string | scheme://host:port of the tab. |
app_key | string | Optional. Slug identifying the app within the origin (e.g. "flight-managment"). If omitted, the most-recently-seen app for the origin is used. |
scope | string | Optional. "path" (default): the route view. "app": the whole map of the app. "all": the whole map of every app of the origin. |
url | string | Optional full URL; only its pathname is used to filter entries. |
browser.map.save
Persist something learned about a browser app. Three entry kinds are supported: "selector" (a CSS selector tied to a purpose), "flow" (a free-form note about a multi-step path), and "gotcha" (a free-form note). The entry fields (url_pattern, kind, purpose, payload) are optional AS A GROUP: pass all four, or omit all four to save only `flows`, `mechanisms` or `pitfalls` (no throwaway entry needed); a partial entry or a call carrying nothing to save is rejected. Saving auto-creates the app row if needed (app_key is derived from title when not provided). Upsert on (app, url_pattern, kind, purpose…
| Parameter | Type | Description |
|---|---|---|
origin * | string | |
app_key | string | Optional slug. If omitted, derived from title or origin host. |
flows | array | Optional named, replayable flow recipes for this app. Each `steps` array follows the EXACT browser.flow step grammar (find/click/type/press/wait_for/drag) and is rejected with the same validation brow… |
kind | string | |
mechanisms | array | Optional. How the app behaves underneath — behaviour, never content. Allowed: "a GET of an item URL marks it complete server-side", "progress % is rendered client-side, not in the fetched HTML". For… |
notes | string | |
payload | Kind-specific payload. selector: { selector: string, evidence?: string, semantic_key?: { role: string, name: string, path: array<{ tag: string, index: number }> } } — `semantic_key` is the `semantic… | |
pitfalls | array | Optional. What does NOT work or misleads — the most expensive thing to rediscover. Allowed: "click on the next-lesson link returns ok but does not navigate (onmouseup handler)", "the text 'lessons c… |
purpose | string | Human-readable label for what this entry achieves (e.g. "open task detail dialog"). |
title | string | Optional document.title; used to derive app_key on first save for this origin. |
url_pattern | string | Pathname this entry applies to (e.g. "/home/flight-management/cga"). Use exact paths by default; only generalize when you have evidence of a parametric route. |
browser.map.record_use
Mark an entry as freshly verified or freshly failed after you used it. ok=true updates verified_at and clears failed_at; ok=false updates failed_at. Always call this after using an entry from recall so the map stays honest about what works today.
| Parameter | Type | Description |
|---|---|---|
entry_id * | number | |
ok * | boolean | |
notes | string |
browser.map.forget
Permanently delete an entry (entry_id), ONE mechanism/pitfall (insight: { app_id, kind, key } — the app_id, kind and key come straight from a browser.map.recall item), or a whole app and everything in it (app_id). Use when a refactor or app change makes the saved knowledge actively wrong.
| Parameter | Type | Description |
|---|---|---|
app_id | number | |
entry_id | number | |
insight | object | Delete a single saved mechanism or pitfall. |
reason | string |
browser.map.rename_app
Rename an app_key. Useful when the heuristic from the document title picked a poor name (e.g. typos like "FLIGHT MANAGMENT" → "flight-management").
| Parameter | Type | Description |
|---|---|---|
app_id * | number | |
new_app_key * | string |
browser.map.apps
List apps currently tracked in the map, most recently used first. Use to discover known origins and their app_keys.