Return less
Read web pages as text
An agent that browses by screenshot or by reading raw HTML pays for every pixel and tag. Open-source tools such as agent-browser and Playwright return the page as compact text with a ref per element. On the Claude API, web search and fetch can filter results in code first.
Where it fits
Text snapshots, or filtered web search and fetch on the Claude API.
agent-browser or Playwright CLI with a skill.
The vendor's browsing tool decides.
Fetch the page as text, not a screenshot.
The setting in each harness
Read on each vendor's own page, linked next to the setting.
| Harness | Setting |
|---|---|
| Claude API and Agent SDK |
|
| Pi |
|
| Claude Code |
|
| Cursor |
|
| Codex |
|
| OpenCode |
|