The Chrome DevTools Protocol, CDP, is how anything outside a Chromium browser drives it: the DevTools window, Puppeteer, Playwright, and every tool built on them. A client connects to a socket, enables the domains it wants (Page, Network, Runtime and so on) and sends commands. The page is not supposed to know. CDP detection is the page finding out anyway, and it is one of the checks bot detection uses to separate an automated Chrome from a person's, even when the fingerprint is clean and navigator.webdriver is false.

How CDP detection works

The Runtime domain gives a client JavaScript execution and console events. Once a client enables it, the browser starts reporting what happens in the page's console to that client, and to report a logged object it has to read the object. A page can log an object built so that reading it runs the page's own code. With no client listening, nothing reads it and nothing runs. With Runtime enabled, the code runs, and the page has its answer. The rebrowser project describes it as "a few lines of JavaScript on the page that are automatically called if Runtime.Enable was used" (rebrowser-patches, read 2 November 2026).

Puppeteer and Playwright both enable Runtime when they attach, because they use it to track the page's execution contexts. So does the DevTools window you open by hand. Other checks look at timing: the protocol's work shows up as small, uneven delays a page can measure.

Everything the window does, from a script on your own computerIn Mosaic: REST API. Everything the window does, from your own scripts. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

How it works: REST API

What we measured

We build our page-driving tools on CDP, so we tested which commands a page can see. One fresh profile per row, against the public detector deviceandbrowserinfo, as recorded in our engineering notes:

CommandVerdict
Page.enablenot a bot
Runtime.evaluate, without enabling the domainnot a bot
An isolated world plus evaluatenot a bot
Input.dispatchKeyEventnot a bot
Runtime.enablebot (isAutomatedWithCDP)

A later run added DOM.enable, Accessibility.getFullAXTree, Log.enable and Network.enable, all clean, and kept Runtime.enable as a deliberate positive control. The control fired in two of four consecutive runs, flagged as hasInconsistentTimingResolution, which is a timing check and therefore depends on load. So the signal is real, and one clean reading does not prove its absence.

We had shipped Runtime.enable in five places before that, warm-up and typing among them, each for no reason. A profile was clean at launch and detectable the moment anything drove it.

How Mosaic handles CDP detection

Mosaic's own page tools, on the REST API and over MCP, never enable Runtime. They read and act from an isolated world the page's scripts cannot see, and send clicks and keys as trusted input with human timing. The build fails if Runtime.enable appears anywhere in the source. One cost is stated where it applies: reading a page's uncaught errors needs a hook in the page's own world, so that switch is off by default and its reply says it is detectable.

The Mosaic MCP server: let an AI assistant manage profiles, proxies and launches
The MCP server drives pages without enabling Runtime

Starting a profile over the API also returns a DevTools endpoint, and Puppeteer or Playwright can attach to it. Then the client is yours, and Playwright enables Runtime as it always does; Mosaic cannot change what an attached library sends. Using Playwright with an anti-detect browser shows both routes side by side, and connecting to an existing Chrome with CDP covers the protocol from the other end. Automate only accounts and sites whose terms allow it.