Skip to content

Browser MCP 1.29.2

Choose a tag to compare

@GLouv GLouv released this 18 Sep 18:39
· 804 commits to main since this release

Install: npx @agent360/browser-mcp install - or load the attached zip unpacked in chrome://extensions.

One class of bug, found an hour after 1.29.1 shipped: tools that answered yes because Chrome had acknowledged a command rather than because the page had received it. Every route that carries that mistake is closed here - every CDP command in the extension that acknowledges without promising delivery was swept, and there are exactly two. Every fix below was written test-first and checked with a mutation test, and the whole release was verified against a real Chrome: 52 checks, 40 of 40 tools, zero failures.

Two related failures are not closed, and are named rather than implied: browser_fill can set a value that a React-controlled field does not react to (the open half of #19), and browser_execute_script cannot run on a strict-CSP page when the debugger is also unavailable. Both are written down with the measurement attached.

Nine tools answered yes because Chrome acknowledged the command, not because the page received it

browser_press_key was the one that lied. In a tab you are not looking at, Chrome accepts Input.dispatchKeyEvent and returns without an error, but never delivers the key. The tool reported ok:true on a key that never arrived. Measured live against a known-true control: in a visible tab the Enter landed, in a background tab nothing landed and the answer was still yes. That is the exact bug class 1.29.1 was released to remove, and it was in the tool itself. Session tabs are created in the background, so it was the default state.

The mouse is different, and that is why it escaped: in a background tab mouse events hang, so the 1.5 second deadline made the answer honest by accident. Keys are acknowledged, and nothing caught them.

  • browser_press_key now measures delivery. A one-shot listener is placed in the extension's own world before the key is sent, so the page can neither see nor remove it, and a page that stops event propagation cannot hide the delivery. Three answers instead of one: the key landed, it could not be read (maaske_landet), or nothing received it, with the remedy in the message. There is deliberately no script fallback: an event dispatched from a script is not trusted by the browser, so Enter would not submit a form and Space would not scroll. Half an Enter is worse than none.
  • browser_hover, browser_double_click and browser_right_click returned ok:true unconditionally. They now measure whether mouseover, dblclick and contextmenu actually reached the page, and double_clicked is no longer claimed when it did not.
  • browser_fill with a text= selector typed and returned success without reading the field. It now reads it back: an empty field is a failure, a different value says the page reformatted it.
  • browser_scroll reported the numbers it was asked for. On a page that cannot scroll it claimed 600 pixels. It now reports the position the page is actually on, and says so when nothing moved.
  • browser_upload_file and browser_drop_file were found by sweeping every CDP command in the extension that acknowledges without promising delivery. Both returned ok:true the moment DOM.setFileInputFiles came back, without ever looking at the field. A path that does not exist, an accept filter that rejects the file type, or the page's own change handler clearing the field all leave an empty FileList behind a reported success. Both now read the field back and report the names actually attached, say so when the field took fewer files than were sent, and fail with the reason when it is empty.
  • browser_fill with an ordinary CSS selector - the most used path of the most used tool - never looked at the field at all. It types with Input.insertText, reads the field once to decide whether to fall back, and when the fallback types the value character by character with Input.dispatchKeyEvent it stops there. If those keys are not delivered either, nothing throws and the caller is told the field was filled. Both branches of fill now share one verdict: the value that is actually in the field, an empty field is a failure with the reason, a different value says the page reformatted it, and an unreadable field says so instead of guessing.
  • browser_set_combobox answered ok:true for an empty list of values, having touched nothing. The guard tested !params.values, and an empty array is not falsy.
  • browser_set_combobox threw away the one measurement it already had. The route to a dropdown starts with a click that opens it, and debuggerClick already reports whether that click reached the page - the same rule click, click_xy and select_option share. If it did not, the search text went into whatever field had focus, and three seconds later the answer blamed the site for having no options. A measured no now says so; an unknown still goes the long way.
  • browser_set_combobox also blamed the page for something it was never asked. When the dropdown never appeared it answered no-options-rendered, but the route there runs through two commands that are acknowledged without being delivered. It now reads the field after sending the query: if a real input is still empty, the search text never arrived, and the answer says that instead of pointing at the site.
  • The proof apparatus had a false yes of its own, and it was the worst one here. A frame that reports "my marker is gone" was read as "the page navigated, so the event landed" - but a frame that never had the marker answers exactly the same, and frames appear constantly: ads, tag managers, reCAPTCHA, embedded video. One ad iframe loading between the arming and the reading turned "nothing landed" into landed:true for hover, double-click, right-click and press_key. Only the main frame losing its marker is a navigation now; a sub-frame's is noise and counts for nothing.
  • browser_click had one branch left over from before the class was closed. When Chrome refuses the debugger entirely, the tool falls back to a script click - and that branch returned a bare ok:true, with the comment "same answer as 1.29.0". Measured against the Stripe dashboard on 17 September: after an hour of Debugger attach failed ... ghost, "Create key" was reported clicked and the page had not changed. The neighbouring branch eight lines below already demanded proof. It now gives the same third answer the rest of the class gives: the click was sent, the effect is unverified. Deliberately not a failure - a menu that opens on mousedown looks like "no effect", and reporting that as failed makes the agent click again and close it.
  • browser_select_option judged a native <select> on a fingerprint of the page: the option count plus the length of its text. Hronom, who maintains a competing project, ran our own Chrome stub against a synthetic page and published fifteen observations on #19. Two of them are wrong answers, and they point in opposite directions: an unrelated status going 9 to 10 changes the length, so a rejected selection was reported as landed; and an accepted selection whose label changes Alfa to Beta keeps the same length, so it was reported as rolled back. The fingerprint is now a hash, which closes the second. The first cannot be closed by any fingerprint - an unrelated change still looks like a reaction - so that branch now gives the third answer the rest of this class gives: the selection was sent, the page moved, and the movement does not prove it was the selection. Exactly what he asked for: a distinct unverified outcome that does not trigger blind replay. Found by Hronom.
  • The tool description for browser_select_option promised that "it never reports success without the field actually changing". The code deliberately does report success in that case, because a controlled component that resets its own field and stores the choice elsewhere is working correctly. The description now says what the code does.
  • A raw NUL byte sat inside extension/background.js. It changed nothing at runtime, but it made grep answer "no matches" on the largest source file in the project, silently and with a failure exit code. Every grep-based audit of that file, ours included, had been getting empty answers. It is the same character, written as an escape sequence.
  • browser_hover reported "not delivered" for a perfectly ordinary sequence. Blink fires mouseover only when the element under the cursor changes, so hovering something you just clicked, or hovering twice, produces only mousemove - and the proof was listening for mouseover alone. This one has a history worth recording: it was raised as a guess on 13 September by a reviewer who could not measure it, so it was not fixed. Instead the guess was written into the release gate as a check. The first real run of that gate, on 18 September, failed exactly there. The proof now listens for both.
  • Two fixes point the other way, at false failures. A tool that wrongly reports "not delivered" makes the agent repeat the action, and an Enter that already submitted a form submits it twice. The proof now counts how many frames were armed and only reports a definite no when that many answer; fewer means unknown. And the key proof no longer judges on the last key seen, so a person typing in the same tab can no longer turn a delivered keystroke into a reported failure.

Release process

  • The check that downloads the published package gave npm 45 seconds. npm itself says a publish "may take a few minutes to become available", and that killed a release that had in fact succeeded: it stopped before the MCP registry with npm and GitHub already out. Now six attempts over three minutes.
  • One test changed colour with the speed of the machine it ran on, and failed on the fast ones. The Windows job had never been able to run at all.
  • The flow gate swallowed its own tab switches. If one failed, every mouse and keyboard step ran in a background tab and the honest "not delivered" answers looked like a regression in the tools. A failed switch now marks the whole run invalid rather than letting it read as a result.
  • npx @agent360/browser-mcp --version printed the help text. It is the first command someone runs when reporting a bug.
  • gemini-extension.json is in the repo, so the Gemini CLI gallery can pick the server up. It carries a version and a tool count, so it is swept by the same two passes that keep every other file honest, and a test compares both against the source.