Two developers told me Playwright. So I measured what one web page costs an AI agent.

Today a WhatsApp group of developers I'm in asked what we use when an AI agent needs a browser. Two people said Playwright. I said agent-browser for most work, and two tools that drive my own logged-in Chrome, Claude in Chrome and BrowserSkill, when the agent needs my logins.
Was that a habit or a reason? I didn't know. So I ran the same task through three tools and counted every token each one sent back to the model.
Playwright sent back 31,000 tokens. agent-browser sent 9,000.
The test
Two pages, the same steps, run twice, because pages don't load the same way every time. On Wikipedia: open the home page, read its structure, search for "Playwright (software)", read the first paragraph. On GitHub: open the Playwright repository, click Issues, read the first title.
The tools: Playwright MCP, the Playwright CLI that its own README suggests for coding agents, and agent-browser. All three drive a real Chromium, and all three give the agent the page's elements with short ids, so it can click by id instead of guessing a selector.
One thing I made equal on purpose. After a click, Playwright MCP no longer puts the page's structure in the chat: it saves it to a file and returns a link. So I asked every tool for the structure once per page, the way an agent must before it can click anything.
One call is most of it

The clicks and the typing were cheap. The tokens came from that one call per page: the snapshot, the page written out for the model.
Wikipedia's home page came back from Playwright as 17,000 tokens, for a page whose only job in the test was to show a search box. agent-browser, asked for interactive elements only, sent 3,000. On GitHub it was less dramatic: about half.
Is agent-browser smarter about pages, then? Not much. Its full snapshot was only up to a third smaller than Playwright's.
The difference is one flag. snapshot -i lists only what you can click, type
into or select, plus the headings to find your way. The paragraphs and the
wrappers around them go. The agent asks for the text later, and only the text
it needs.

That has a price, and it's fair to say it. Playwright's snapshot carries the text, so it can skip the read call. agent-browser needed more calls for the same task. It still came out at less than a third.
The CLI that was supposed to fix it

Benchmark posts this year, from Morph and TestDino among others, say Playwright CLI uses about 4 times fewer tokens than Playwright MCP, because the CLI writes snapshots to disk instead of into the chat.
The current MCP writes them to disk too, as I said above. And when I called each one's snapshot command on the same page, they returned the same text, within one character. Same engine, same snapshot.
So what's left between them is the MCP's list of tools: a few thousand tokens of descriptions in the context on every turn, if your client loads them all. My totals above don't even count it.
Why a big page costs more than once

Does a 17,000-token page matter, with million-token models? It does, because it never leaves.
An agent re-reads its whole context on every step. In October I measured the coding agents I run every day: a typical step re-read hundreds of thousands of tokens. A snapshot taken early is read again on the next step, and on every step after.
Things I did not expect

My agents can't press Enter. Earlier this month an agent was testing our app in a headless browser and sent one key press. The key never came back up. The browser repeated it thousands of times a second, and every repeat clicked the button in focus: Search. The flood of searches took our test server down.
Now a small script in front of agent-browser refuses key presses, and agents submit a form by clicking its button. The benchmark ran into it on the Wikipedia search, and clicked Search instead.

GitHub never gives you the same page twice. It keeps loading parts of the page after it opens, so a snapshot taken a moment too early comes back smaller, or bigger. One Playwright run came back thousands of tokens heavier for that reason alone. Measure twice!
What the question should have been
Two people said Playwright. I said agent-browser. Nobody, me included, answered with a number.
Mine is 9,000 tokens against 31,000, for the same two pages. The question I'll ask next time is what one page costs your agent, not which tool you like.
Pick the browser by what it hands back to the model.