@raultov/browser-control-mcp 0.5.0-beta.8 → 0.6.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +68 -0
- package/README.md +66 -6
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,74 @@ from a copy of its code: entries describe the differences from that release.
|
|
|
10
10
|
|
|
11
11
|
## [Unreleased]
|
|
12
12
|
|
|
13
|
+
## [0.6.0-beta.9] - 2026-10-31
|
|
14
|
+
|
|
15
|
+
Public **BETA**. Spends fewer tokens and answers what the agent needs, after
|
|
16
|
+
a side-by-side study with Playwright MCP and chrome-devtools-mcp (now in the
|
|
17
|
+
README): `get_network_logs` and `get_console_logs` answer one line per entry
|
|
18
|
+
(details on demand), `snapshot` no longer repeats table text, input actions
|
|
19
|
+
wait for the page to settle, and `profile_page_performance` explains its
|
|
20
|
+
numbers with `insights`. Behaviour changes: the two log tools answer text
|
|
21
|
+
instead of JSON unless `include_details: true`, layout tables leave only
|
|
22
|
+
their content in `snapshot`, and input actions take ~50 ms more when the
|
|
23
|
+
page does not react.
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- `profile_page_performance` takes `insights: true`: what explains the
|
|
28
|
+
numbers, read in the page with the Web Performance APIs on both browsers:
|
|
29
|
+
the document's TTFB, server time and compression, the LCP element with
|
|
30
|
+
its breakdown (TTFB, load delay, load, render delay), layout-shift
|
|
31
|
+
culprits, render-blocking requests, the slowest requests and the scripts
|
|
32
|
+
of long animation frames (at most 5 each), and `findings` from the web.dev
|
|
33
|
+
thresholds (LCP over 2.5 s, CLS over 0.1, a slow server, an uncompressed
|
|
34
|
+
document, render-blocking requests). Firefox reports no layout shifts,
|
|
35
|
+
render-blocking status or long frames: those are `null`, with notes. The
|
|
36
|
+
reply grows from ~60 to ~600-700 tokens on Wikipedia. (#22)
|
|
37
|
+
|
|
38
|
+
### Changed
|
|
39
|
+
|
|
40
|
+
- `click_element`, `hover`, `fill_input`, `fill_form` and `press_key` wait
|
|
41
|
+
for the page to settle before answering: until the DOM stays unchanged for
|
|
42
|
+
50 ms (style changes aside) and the requests the action started finished,
|
|
43
|
+
at most 1 s, on both browsers. They answered in 1-2 ms, before the page
|
|
44
|
+
reacted, so a read right after a click that fetches data saw the old page.
|
|
45
|
+
An action nothing reacts to now takes ~50 ms and keeps its reply; one the
|
|
46
|
+
page reacts to adds how (`The page reacted (the DOM changed, 1 request(s))
|
|
47
|
+
and settled after 134 ms.`), or that it was still changing after 1 s. Not
|
|
48
|
+
done when the action left a dialog open or the page paused. (#21)
|
|
49
|
+
- `snapshot` and `find_in_snapshot` no longer print a table's text two or
|
|
50
|
+
three times. A table without headers (`th`, `thead`, `caption`,
|
|
51
|
+
`summary`) and without a role is layout: its `table`, `row` and `cell`
|
|
52
|
+
lines are left out and only their content stays, as in Chrome's
|
|
53
|
+
accessibility tree. A cell is named by its content only when that content
|
|
54
|
+
is plain text (folded into the name, up to 100 characters); a cell with
|
|
55
|
+
links or controls keeps them as children, unnamed. Hacker News went from
|
|
56
|
+
~8 500 to ~4 500 tokens. (#20)
|
|
57
|
+
- `get_console_logs` answers one line per message by default: `[level]
|
|
58
|
+
text @ url:line` (lines from 1), repeats in a row folded (`[x3]`),
|
|
59
|
+
uncaught errors marked (`Uncaught ...`) with up to 5 stack lines
|
|
60
|
+
indented; `include_details: true` keeps the previous JSON. A page with
|
|
61
|
+
six messages went from ~550 to ~150 tokens. (#19)
|
|
62
|
+
- `get_network_logs` answers one line per request by default (`id METHOD
|
|
63
|
+
url => status [type]`, oldest first), then one per WebSocket frame with a
|
|
64
|
+
payload preview: ~100 tokens for a page of four requests instead of ~2 250.
|
|
65
|
+
The new `request_id` shows one request's headers and body;
|
|
66
|
+
`include_details: true` (now off by default) keeps the previous JSON with
|
|
67
|
+
every request's details. (#18)
|
|
68
|
+
|
|
69
|
+
### Fixed
|
|
70
|
+
|
|
71
|
+
- `get_console_logs` previews objects and arrays as the console shows
|
|
72
|
+
them (`hello {n: 1, s: 'x'} [1, 2, 3]`): Chrome printed `Object`, Firefox
|
|
73
|
+
`Object(3) Array(3)`. On Chrome a `console.*` call keeps its location
|
|
74
|
+
(`url`, `line_number`), which was always empty, and `undefined`
|
|
75
|
+
arguments are printed. (#19)
|
|
76
|
+
- `get_network_logs` no longer lists the browser's own requests: a freshly
|
|
77
|
+
launched Chrome logged its new-tab page (`chrome://resources/...`, `data:`
|
|
78
|
+
images) before the first navigation. `chrome://`, `devtools://`, `data:`,
|
|
79
|
+
`about:` and extension URLs are not logged. (#18)
|
|
80
|
+
|
|
13
81
|
## [0.5.0-beta.8] - 2026-10-31
|
|
14
82
|
|
|
15
83
|
Public **BETA**. Closes the rest of the Playwright MCP comparison: the new
|
package/README.md
CHANGED
|
@@ -11,12 +11,62 @@ It is the successor of
|
|
|
11
11
|
from a copy of its code) and complements Playwright MCP or
|
|
12
12
|
chrome-devtools-mcp with runtime JavaScript debugging on both browsers.
|
|
13
13
|
|
|
14
|
-
> **Status: BETA (0.
|
|
14
|
+
> **Status: BETA (0.6.0-beta.9).** This version contains known bugs and differences
|
|
15
15
|
> between Chrome and Firefox (see [Limitations and TODO](#limitations-and-todo))
|
|
16
16
|
> and parts that have not been verified (see [Untested](#untested)). Tool
|
|
17
17
|
> replies may change in incompatible ways before 1.0. Please report problems
|
|
18
18
|
> in the [issues](https://github.com/raultov/browser-control-mcp/issues).
|
|
19
19
|
|
|
20
|
+
💬 Questions, ideas or feedback: join us on [Discord](https://discord.gg/TunAHQZ8K).
|
|
21
|
+
|
|
22
|
+
## Comparison with Playwright MCP and chrome-devtools-mcp
|
|
23
|
+
|
|
24
|
+
Measured on 2026-10-31 with browser-control-mcp built from the current
|
|
25
|
+
sources, `@playwright/mcp` 0.0.83 and `chrome-devtools-mcp` 1.12.0, driven by
|
|
26
|
+
the same stdio client through the same tasks on Chrome 156 (headless,
|
|
27
|
+
Linux). Every outcome was checked in the page, not taken from the reply.
|
|
28
|
+
Tokens are estimated as characters / 4 for every server.
|
|
29
|
+
|
|
30
|
+
**What each one can do**
|
|
31
|
+
|
|
32
|
+
| | browser-control-mcp | Playwright MCP | chrome-devtools-mcp |
|
|
33
|
+
| --- | --- | --- | --- |
|
|
34
|
+
| JavaScript debugger (breakpoints, call frames, stepping, script search) | **✓ Chrome and Firefox** (pause on load: Chrome) | ✗ | ✗ |
|
|
35
|
+
| Firefox | **✓ next to Chrome, same tools** | ✓ one browser per server | ✗ |
|
|
36
|
+
| Several browsers and instances at once | **✓** | ✗ | ✗ |
|
|
37
|
+
| Selectors | CSS, snapshot refs, `host >>> inner` into shadow roots and iframes | CSS, snapshot refs | snapshot refs only |
|
|
38
|
+
| Snapshot of a long page | **bounded at 50 000 characters**, `find_in_snapshot` searches the rest | unbounded | unbounded |
|
|
39
|
+
| Waits for the page to react after an action | ✓ ~50 ms when nothing reacts | ✓ ~500 ms | ✓ ~200 ms |
|
|
40
|
+
| Clicking a covered or hidden element | **fails at once, naming the overlay** | fails after a 5 s timeout | reports success (the overlay gets the click) |
|
|
41
|
+
| Mock requests, offline mode | ✓ | ✓ | offline only |
|
|
42
|
+
| PDF | ✓ file or inline | ✓ file | ✗ |
|
|
43
|
+
| Cookies and web storage | ✓ values hidden unless asked | ✓ values shown | ✗ |
|
|
44
|
+
| Secrets masked in output (`--secrets`) | ✓ | ✓ | ✗ |
|
|
45
|
+
| Performance | vitals + insights (LCP breakdown, layout shifts, render-blocking, long scripts) | trace file | trace + insights, Lighthouse |
|
|
46
|
+
| Heap snapshots, CSS styles, screencast | ✗ | video, tracing | ✓ |
|
|
47
|
+
| Generates Playwright test code | ✗ | ✓ | ✗ |
|
|
48
|
+
| Telemetry | **none** | none found | usage statistics on by default; traced URLs sent to CrUX |
|
|
49
|
+
| Single native binary (no Node.js) | **✓** | ✗ | ✗ |
|
|
50
|
+
|
|
51
|
+
**Measured**
|
|
52
|
+
|
|
53
|
+
| Task | browser-control-mcp | Playwright MCP | chrome-devtools-mcp |
|
|
54
|
+
| --- | --- | --- | --- |
|
|
55
|
+
| Tool list in context, default tools | 6 040 tokens | 5 330 tokens | 7 770 tokens |
|
|
56
|
+
| Tool list in context, every opt-in tool on | 9 500 tokens | 12 040 tokens | not measured (optional categories) |
|
|
57
|
+
| Snapshot of Hacker News | **4 588 tokens** | 12 356 tokens | 6 869 tokens |
|
|
58
|
+
| Snapshot of Wikipedia "Web browser" | **12 643 tokens** (cut, searchable) | 34 349 tokens | 27 656 tokens |
|
|
59
|
+
| Snapshot of MDN `<input>` | **12 625 tokens** (cut, searchable) | 158 077 tokens | 76 654 tokens |
|
|
60
|
+
| Log in step by step (8 calls) | **298 tokens, 1.8 s** | 521 tokens, 2.4 s | 364 tokens, 2.6 s |
|
|
61
|
+
| Log in with `fill_form` (5 calls) | **321 tokens, 1.6 s** | 428 tokens, 1.9 s | 352 tokens, 2.0 s |
|
|
62
|
+
| Click, median | 52 ms | 531 ms | 234 ms |
|
|
63
|
+
| Evaluate JavaScript, median | **0 ms** | 504 ms | 204 ms |
|
|
64
|
+
| Navigate (local page), median | **13 ms** | 31 ms | 119 ms |
|
|
65
|
+
| Full-page screenshot of a 31 700 px page | cut at 16 384 px, with a note | 3.3 MB image in the reply | saved to a file |
|
|
66
|
+
| Navigation to an unknown host | error | error | success with the error in the text |
|
|
67
|
+
| Navigate, then read the console (log, warning, errors) | 249 tokens | 191 tokens | 117 tokens |
|
|
68
|
+
| Navigate, then read the network log (3 requests) | 168 tokens | 48 tokens | 54 tokens |
|
|
69
|
+
|
|
20
70
|
## Supported browsers
|
|
21
71
|
|
|
22
72
|
| Browser | Protocol | Validated with |
|
|
@@ -72,7 +122,7 @@ see the note.
|
|
|
72
122
|
| `emulate` | ✓ | partial | `emulation` group; `width`/`height`, `device_scale_factor`, `mobile` (touch), `color_scheme`, `reduced_motion`, `forced_colors`, `media` (`print`), `reset`; answers what the page now sees; Firefox: viewport and device pixel ratio only (BiDi has no media or touch emulation yet; those options fail naming them) |
|
|
73
123
|
| `wait_for` | ✓ | ✓ | waits (checking every 100 ms, at most 30 s) until a visible text appears or is gone, a selector is `visible` / `hidden` / `attached` / `detached`, or the URL contains a text; a dialog or debugger pause ends the wait at once |
|
|
74
124
|
| `inspect_dom` | ✓ | ✓ | includes open shadow roots and same-origin iframes (cross-origin ones are noted); at most 100 000 characters without `query` (cut in the page) |
|
|
75
|
-
| `snapshot` | ✓ | ✓ | outline of the page: role, name, states, value and a ref (`e12`) per element, through open shadow roots and same-origin iframes; at most 50 000 characters (`selector` and `depth` narrow it); the same JavaScript on both browsers |
|
|
125
|
+
| `snapshot` | ✓ | ✓ | outline of the page: role, name, states, value and a ref (`e12`) per element, through open shadow roots and same-origin iframes; tables without headers (`th`, `thead`, `caption`) are layout and leave only their content, and a cell is named by its text only when it holds nothing else; at most 50 000 characters (`selector` and `depth` narrow it); the same JavaScript on both browsers |
|
|
76
126
|
| `find_in_snapshot` | ✓ | ✓ | `text` (case-insensitive) or `regex` over the whole outline; matching lines under their ancestors, at most 20 |
|
|
77
127
|
| `save_pdf` | ✓ | ✓ | `files` group; prints the tab as the browser's print does (`landscape`, `print_background`, `scale` 0.1–2, `page_ranges` like `1-3, 5`); with `path` (an absolute `.pdf` under the upload roots) writes the file and answers `{path, bytes, pages}`, else returns the PDF as an embedded `application/pdf` resource (at most 5 MB); Chrome `Page.printToPDF`, Firefox `browsingContext.print` |
|
|
78
128
|
| `capture_screenshot` | ✓ | ✓ | `format` `png`, `jpeg` (or `jpg`) or `webp`; `full_page` at most 16 384 px per side (a text note says when cut) |
|
|
@@ -86,15 +136,15 @@ see the note.
|
|
|
86
136
|
| `evaluate_js` | ✓ | ✓ | `value` at most 100 000 characters (`truncated: true`); Chrome stops a script after 8 s, Firefox cannot (a looping tab is closed with `close_tab`) |
|
|
87
137
|
| `cookies` | ✓ | ✓ | `storage` group; `get` / `set` / `delete`: the cookies sent to the page (or `url`) or of a `domain`; values hidden unless `show_values: true` (Chrome `Network.*Cookie*`, Firefox BiDi `storage.*` in the tab's partition) |
|
|
88
138
|
| `web_storage` | ✓ | ✓ | `storage` group; `get` / `set` / `delete` / `clear` on the page's `localStorage` or `sessionStorage`; values hidden unless `show_values: true` |
|
|
89
|
-
| `get_console_logs` | ✓ | ✓ | a message keeps at most 10 000 characters; Firefox: page errors, CSS warnings and platform messages need the debugger port |
|
|
90
|
-
| `get_network_logs` | ✓ | ✓ |
|
|
139
|
+
| `get_console_logs` | ✓ | ✓ | one line per message, oldest first: `[level] text @ url:line` (lines from 1), objects and arrays previewed as the console shows them (`{n: 1}`, `[1, 2, 3]`), repeats in a row folded (`[x3]`), uncaught errors marked with up to 5 stack lines indented; `include_details: true` gives the JSON with every field; a message keeps at most 10 000 characters; Firefox: page errors, CSS warnings and platform messages need the debugger port |
|
|
140
|
+
| `get_network_logs` | ✓ | ✓ | one line per request, oldest first (`id METHOD url => status [type]`, or `failed: <reason>` / `pending`), then one per WebSocket frame (payload preview); `request_id` shows one request's headers and body, `include_details: true` every request's as JSON (a binary body has `response_body_encoding: "base64"`; bodies at most 64 000 characters, none over 2 MB; a WebSocket payload keeps 64 000, `payload_len` is the whole); the browser's own requests (`chrome://`, `devtools://`, `data:`, `about:`, extensions) are not logged; Firefox: WebSocket frames need the debugger port |
|
|
91
141
|
| `mock_route` | ✓ | ✓ | `network` group; requests whose URL matches a glob (`*`, `?`, `\` escapes) get a mocked `status`, `body` (text, at most 1 MB), `content_type` and `headers` without reaching the network; the latest matching route wins; at most 50 routes per tab, kept until `remove_route` or the tab closes (Chrome `Fetch`, not while `enable_proxy_auth` is active; Firefox a `network` intercept) |
|
|
92
142
|
| `list_routes` | ✓ | ✓ | `network` group; the tab's routes with the `hits` each answered |
|
|
93
143
|
| `remove_route` | ✓ | ✓ | `network` group; one route by id, or all |
|
|
94
144
|
| `set_offline` | ✓ | ✓ | `network` group; requests fail as without a network and `navigator.onLine` is false, until set back (Chrome `Network.emulateNetworkConditions`, Firefox `emulation.setNetworkConditions`); mocked routes still answer; Chrome still serves what its HTTP cache holds, as an offline browser does, Firefox fails every request |
|
|
95
145
|
| `get_custom_events` | ✓ | partial | `raw` group; `{events, total, truncated}`, the newest `limit` events; `clear` removes the returned ones; params over 64 000 characters of JSON are replaced by `{truncated, characters}`; Firefox: events of the modules subscribed with `send_bidi_command` |
|
|
96
146
|
| `get_performance_metrics` | ✓ | partial | `perf` group; Firefox: `Nodes`, `Frames`, `Resources`, `TransferSize` from the Web Performance APIs (no Performance domain), plus a note |
|
|
97
|
-
| `profile_page_performance` | ✓ | partial | `perf` group;
|
|
147
|
+
| `profile_page_performance` | ✓ | partial | `perf` group; `insights: true` adds what explains the numbers, read with the Web Performance APIs (same JavaScript on both): the document's TTFB, server time and compression, the LCP element and its breakdown (TTFB, load delay, load, render delay), layout-shift culprits, render-blocking requests, the slowest requests and the scripts of long animation frames (at most 5 each), plus `findings` from the web.dev thresholds; Firefox: FCP, LCP, DCL and Load; no trace, so `total_blocking_time_ms` and `top_long_tasks` are `null`, and its insights have no layout shifts, render-blocking requests or long frames (`null`, with notes) |
|
|
98
148
|
| `set_breakpoint` | ✓ | partial | Firefox: by URL only (no `script_id` / `script_hash`) |
|
|
99
149
|
| `remove_breakpoint` | ✓ | ✓ | |
|
|
100
150
|
| `resume` | ✓ | ✓ | |
|
|
@@ -111,6 +161,16 @@ see the note.
|
|
|
111
161
|
| `webmcp_get_invocation` | ✓ | ✗ | needs `--enable-webmcp` |
|
|
112
162
|
| `webmcp_list_invocations` | ✓ | ✗ | needs `--enable-webmcp` |
|
|
113
163
|
|
|
164
|
+
After `click_element`, `hover`, `fill_input`, `fill_form` and `press_key`
|
|
165
|
+
the server waits for the page to settle before answering: until its DOM
|
|
166
|
+
stays unchanged for 50 ms (style changes, often animations, aside) and the
|
|
167
|
+
requests the action started finished, at most 1 s, on both browsers. An
|
|
168
|
+
action nothing reacts to costs those 50 ms and keeps its reply; otherwise
|
|
169
|
+
the reply adds `The page reacted (the DOM changed, 1 request(s)) and settled
|
|
170
|
+
after 134 ms.`, or says the page was still changing after 1 s. A click that
|
|
171
|
+
navigates waits for the new page's requests. Use `wait_for` for anything
|
|
172
|
+
slower (a timer, a long request).
|
|
173
|
+
|
|
114
174
|
The JavaScript debugger tools on Firefox need its debugger (RDP) port: on by
|
|
115
175
|
default for a launched Firefox, `--firefox-rdp-port` for an attached one. The
|
|
116
176
|
same port gives Firefox's WebSocket frames and the console messages BiDi does
|
|
@@ -547,7 +607,7 @@ incompatible:
|
|
|
547
607
|
- Firefox debugger: tabs are mapped to the debugger through Firefox's Remote
|
|
548
608
|
Agent (verified on Firefox 157 only); a Firefox without it answers the
|
|
549
609
|
debugger tools with an error instead of guessing a tab.
|
|
550
|
-
- `get_network_logs` with
|
|
610
|
+
- `get_network_logs` with `include_details: true` has no total size limit (each
|
|
551
611
|
Firefox body is capped at 2 MB): use `url_filter` on busy pages.
|
|
552
612
|
- The Docker image is amd64 only.
|
|
553
613
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"hasInstallScript": true,
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"name": "@raultov/browser-control-mcp",
|
|
22
|
-
"version": "0.
|
|
22
|
+
"version": "0.6.0-beta.9"
|
|
23
23
|
},
|
|
24
24
|
"node_modules/detect-libc": {
|
|
25
25
|
"engines": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"requires": true,
|
|
51
|
-
"version": "0.
|
|
51
|
+
"version": "0.6.0-beta.9"
|
|
52
52
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"artifactDownloadUrls": [
|
|
3
|
-
"https://github.com/raultov/browser-control-mcp/releases/download/v0.
|
|
3
|
+
"https://github.com/raultov/browser-control-mcp/releases/download/v0.6.0-beta.9"
|
|
4
4
|
],
|
|
5
5
|
"author": "raultov <raultov@protonmail.com>",
|
|
6
6
|
"bin": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"zipExt": ".tar.xz"
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
|
-
"version": "0.
|
|
95
|
+
"version": "0.6.0-beta.9",
|
|
96
96
|
"volta": {
|
|
97
97
|
"node": "18.14.1",
|
|
98
98
|
"npm": "9.5.0"
|