Operun
← All guides

Reading Dense Pages: How Operun's Snapshot Sees a 40,000-Token Listing

Why browser agents go blind on recruiting and e-commerce listings, and the three snapshot limits Operun removed: name clipping, token budget and prose.

snapshot accessibility-tree perception llm-agents

The problem: dense pages look small

A browser agent decides what to do from a snapshot: a text listing of the controls on the page, each with a handle the next step can aim at. That works on an admin console with a few hundred buttons. It breaks on the pages businesses actually care about.

A recruiting listing or a product grid renders each card as one control whose accessible name is everything the card says: company, title, salary, city, and a self-description run together. Read that page with a typical snapshot and three separate limits hit at once. Each one fails silently, so the page looks complete when it is not.

Limit 1: names cut at 50 characters

Operun’s snapshot used to clip every accessible name at 50 characters. On a listing page that cut every card mid-sentence, and nothing marked the cut. A control with half a name looks exactly like a control with a short one, so a model would aim a step at the wrong card with no signal that anything was missing.

The ceiling is now 1,200 characters per name, which carries a whole card’s pitch.

Limit 2: a 4,000-token page budget

Widening names alone would just move the failure: a few hundred long-named cards would use up a 4,000-token budget and truncate the page a different way. So the snapshot ceiling went from 4,000 to 40,000 estimated tokens (about 120 KB of text) in the same change.

40,000 is still a bound, and it is chosen against the transport: one snapshot travels in a single WebSocket frame, an order of magnitude inside the 16 MiB frame limit. When a page is larger still, the snapshot ends with a trailer saying how many elements were left out, rather than stopping quietly.

Limit 3: prose was never reported

The first two fixes made controls readable. They did nothing for the text a workflow often comes for: a job description, a résumé, an article body. Those live in <p>, <li> and <article> elements, which have no role and no handle, so an interactive snapshot correctly skips them.

The snapshot now has a content mode. It reports p, h1–h6, article, li, blockquote, code and pre blocks on their own lines, next to the controls:

# controls only (the default, byte-identical to before)
operun browser snapshot --tab 7

# controls plus the page's body text
operun browser snapshot --tab 7 --text

Two details keep this safe for agents:

  • Handles stay stable across modes. A control snapshotted interactively keeps the same @eN handle in content mode, so an agent that just read a résumé can still click the button next to it.
  • A clipped block says so. A long text block is clipped at 1,200 characters and ends with …, so a truncated article is never mistaken for a short one.

Content mode runs in the Chrome Web Store build. It uses the same scripting path as every other read, with no debugger involved (Store Edition).

What the model sees versus what you see

There is one deliberate asymmetry. When an AI model calls the snapshot tool, its answer is cut to 4,000 estimated tokens, keeping the top of the page, because a model pays per token and re-reads the page every step. The cut answer ends with:

... [TRUNCATED: {omitted} elements omitted; total {total} elements]

so the model can tell a trimmed page from a small one, and total - omitted matches the lines it actually received. Your own operun browser snapshot is never cut this way: you get the full 40,000-token read.

Takeaways

  • Silent truncation is worse than a missing element, so every limit in the snapshot now leaves a mark.
  • Use --text when the workflow needs to read the page, not just act on it.
  • Expect model-facing reads to be shorter than operator reads, by design.

See the Docs & Support page for the full CLI reference.

Book a demo · Enterprise

Tell us which workflow to automate

Leave your work email and pick the closest workflow. We will prepare a plan around how your team actually works.

We only use this email to reply to your request, never for bulk marketing. See our Privacy Policy.