What browser tools cost a coding agent: 2,045 vs 4,319 vs 5,787 tokens
An agent that drives a browser pays for its tools before it reads a single page. Every tool the agent can call is described in its context, and the agent pays for that description again on every turn. We measured that cost for three browser tools that coding agents use.
trail's tool definitions take 2,045 tokens. Playwright MCP's take 4,319. Chrome DevTools MCP's take 5,787. By subtraction, trail carries 2,274 fewer tokens per turn than Playwright MCP and 3,742 fewer than Chrome DevTools MCP. The benchmark that produced these counts ships with trail, so anyone can run it again.
The number is small because we budget it. We do not cap the number of tools. We cap their size: the serialized definitions must fit in 3,000 tokens, and the build checks that on every change. Today that buys 16 tools in five groups: observe, navigate, act, workflow and ask. One of them, ask_user, is registered but not built. It returns a typed answer that says so and names what to do instead. We would rather a tool admit that than pretend.
So what does 2,045 mean? It is a fixed charge on context, paid on every turn. A smaller charge leaves more room for the page and the task, and the saving repeats for as long as the session runs. It is also easy to check. You can count it without running a single task.
It does not tell you three things.
First, it says nothing about whether the agent finishes the job. Our task benchmark is not done. The one smoke run we have used a local 9B model, and all three tools scored zero. A run where everyone scores zero cannot rank anyone, so those numbers stay out of the headline. Full task results go up only once they exist.
Second, tool definitions are not the biggest token cost in browser work. Page snapshots are a separate cost. In one session we measured, about 15,000 tokens went into repeated page chrome such as navigation, cookie banners and footers. Vercel says its Agent Browser produces accessibility snapshots about 93% smaller than Playwright MCP's. We have not tested that claim, and we have not published a snapshot size for trail.
Third, it is not a speed number. In that same session, 28 browser steps took about 12 minutes. The browser was not the slow part. Snapshots took 5 to 52 milliseconds and a page load took about half a second. An action took about 50 milliseconds when its locator matched and 30,000 when it missed. That session ran on a scratch test setup rather than trail, with the same step mechanics. Once the misses were gone, the time went to the model. A large model at high effort ran all 28 steps of "click the button named X", which is not a reasoning task.
That last point is where most of the saving is. A token saved on definitions helps. A turn the agent never takes helps more. trail replays each recorded step with its recorded locator first, and a hit fetches no page snapshot at all. A healthy run makes zero model calls and gives the same answer twice. When a locator misses, trail tries the recorded alternatives in order. If none match, it stops and hands the run back to you. Agent repair comes in a later release.
So read 2,045 for what it is: the smallest of three fixed costs, counted the same way for all three tools. It is not a claim that trail finishes more tasks. We do not have that number yet. When we do, we will publish it with the run behind it, even if it is zero again.