Screenshots or text maps: what should an AI agent read from a web page?
For most browsing tasks an AI agent should read a short text map, not a screenshot. A map tells it what is on the page and gives each control a number to act on, so it does not have to find a button in an image and guess where to click. A picture is still useful when a person wants to look.
What a screenshot asks of the agent
A screenshot is pixels. To use it the agent has to recognise the control it wants, work out where it is, and click by coordinates. Every action then needs another screenshot to see what happened.
What a text map gives it
Browser Layer opens a page and answers with a short map of its regions and controls, each control with a number. The agent acts by number: browser-layer type 15 Mumbai, then browser-layer click "Search". Each reply says what changed, so there is no second look at the whole page.
When you still want a picture
browser-layer screenshot saves a picture of a tab, or of one region by number, when a person wants to see it. The agent does not need it to do the task.
What it costs
Reading text instead of pages cut the tokens in our benchmark by about a third against agent-browser: 5.80M against 8.80M over ten scenarios with Claude Code, with both passing all 30 runs.
Questions
Do AI agents need screenshots to browse?
Not with Browser Layer. The agent reads a numbered text map and acts by number. A screenshot is available for a person to look at.
Is a text map the same as the DOM?
No. The map lists regions and controls the agent can act on, not the markup. Raw DOM dumps are long; the map is short.