Skip to content

10 Agentic Browsing and Computer Use

Anurag Prasad edited this page Nov 29, 2026 · 1 revision

10. Agentic Browsing & Computer Use

Search returns links. Browsing agents operate the web: they load pages, click, type, log in and complete tasks.

10.1 Three shapes of web agents

flowchart TB
    subgraph S1[1 · Hosted search tools]
        A1[Model + server-side search/fetch] --> A2[Text evidence + citations]
    end
    subgraph S2[2 · Browser libraries / MCP]
        B1[LLM decides] --> B2[Playwright / CDP driver] --> B3[DOM snapshot or screenshot]
    end
    subgraph S3[3 · Agentic browsers / extensions]
        C1[User's real browser + AI] --> C2[Acts inside logged-in sessions]
    end
    S1 --> S2 --> S3
Loading
Shape Examples Trait
Hosted tools OpenAI, Claude, DeepSeek Vendor-side fetch, citations
Libraries / servers Playwright MCP, browser-use, Stagehand, Skyvern, Browserbase Developer-controlled loop
Agentic browsers / extensions Consumer products from OpenAI, Perplexity, Anthropic and others Real user session; product lineup changes fast — check vendor pages

10.2 Perception: DOM vs pixels

  • Accessibility/DOM snapshot — compact, structured, token-cheap; breaks on canvas or heavy shadow DOM.
  • Screenshot + vision ("computer use") — general but slower and costlier; see Anthropic's computer-use tool docs.

Snapshot cost model: if a page exposes $n$ interactive elements at $\approx\tau$ tokens each, one observation costs $\approx n\tau$; over $S$ steps the run costs $\approx S,n,\tau$ — the reason tool builders compete on snapshot compactness.

10.3 Benchmarks

WebArena (self-hosted realistic sites), Mind2Web (cross-site generalisation), WebShop (shopping), BrowseComp (hard-to-find facts).

10.4 Security: the open web is untrusted input

Pages can contain instructions aimed at the agent. This indirect prompt injection is documented in Greshake et al. 2023 and listed as a leading risk in the OWASP LLM Top 10. Mitigations: least-privilege tools, domain allow-lists, human confirmation on sensitive actions, separating instructions from data, and logging.

10.5 Why this matters for the web ecosystem

A browser agent looks (and is) closer to a human session than a crawler. It blurs the line between bot and user-delegated traffic — the core detection gap in 17.

10.6 What this lab does and doesn't cover

None of the above runs in the lab yet; it is Stage 5, deferred until search reliability gates pass (21). Playwright can run on GitHub-hosted runners, so a later browser-agent experiment is feasible within CI limits (11).


❓ Check your understanding

Q1. What is indirect prompt injection?

Malicious instructions embedded in content the agent reads (a web page, PDF, email) that the model may follow as if from the user (Greshake et al.).

Q2. Why do snapshot-based tools save tokens over screenshots?

They send a compact structured tree instead of image tokens, and can address elements by reference.

Q3. How does a browser agent complicate bot detection?

It executes real browser behaviour, often inside a user's own session, so classic "headless script" signals disappear (17).

← Prev 9. Search APIs · Next → 11. Simulation Strategy

Clone this wiki locally