Websites and AI agents

Hand-drawn woven grid of cream, sand, umber and moss strands crossed by a stepped terracotta line that joins a straight terracotta band at the right.

Websites are now read and operated by AI agents: programs built on a large language model (LLM) that browse, click and fill forms on a user’s behalf. How well an agent does depends on what it is given to look at, and the best view of a page depends on the model. Agent-specific interfaces, such as APIs and tool protocols, raise success where they cover the task, but the human interface stays the fallback.

Three questions are disputed. Should the web build a separate layer for agents or improve the one it shares with people? Are files written for agents, such as llms.txt, read or useful? And how much does page markup itself change agent success?

How agents see a page

An agent cannot look at a page the way a person does; its software converts the page into input for the model. Three views are common. The HTML is the page’s full source. The accessibility tree is the browser’s reduced tree of elements with their roles and names, the same structure screen readers use (see accessibility). A screenshot is an image, sometimes with numbered boxes drawn on clickable elements (a “set-of-marks”).

Raw HTML is the most complete view but can be very long. On one benchmark of business web applications, pages run from 40K to 500K tokens, the word pieces a model reads. This length is why agents are often given the compact accessibility tree instead (Enomoto et al., 2026). The authors of a WebArena study call raw HTML the most complete observation but say it may not suit LLMs best (Guo et al., 2026d).

Which view works best Weak evidence: few or small studies support this

No view is best for every model. On WorkArena, higher-capability models with larger thinking budgets did up to 17.5 percentage points better with HTML than with the accessibility tree (Enomoto et al., 2026). On OSWorld, a benchmark of desktop tasks, GPT-4o did better with the tree (11.36%) than with a screenshot (5.03%), while Gemini-Pro-1.5 did slightly better with the screenshot (5.40% against 4.81%) (Xie et al., 2024).

Trimming the view also helps some models and hurts others. On WebArena, filtering the accessibility tree raised LLaMA-2-70B’s success from 1.97% to 2.96% but lowered GPT-3.5’s from 6.65% to 5.84% (Guo et al., 2026d). On enterprise applications, fine-tuned agents did best with a screenshot plus the tree, while an untuned model did better with the tree alone (27.2% against 22.3%) (Mo et al., 2026a).

Screenshots alone often do worst, though the best alternative differs by benchmark. Screenshot-only input was the weakest for all three agents on enterprise applications and for GPT-4V on OSWorld, and the accessibility tree generally beat screenshots on healthcare administration portals (Mo et al., 2026a; Xie et al., 2024; Bedi et al., 2026). On VisualWebArena, GPT-4V with set-of-marks screenshots reached 16.37%, against 15.05% for an image with captions and the tree, and 7.25% for GPT-4 with the tree as text only (Koh et al., 2024).

Reshaping what the agent sees and can do can raise success. AgentOccam reshaped a plain web agent’s observations and actions to suit the LLM. It raised success on WebArena by 26.6 points (+161%) over similar plain agents, from observation and action changes combined (Yang et al., 2024a). The NEC authors cite it as showing that removing task-irrelevant elements from the accessibility tree improves performance (Enomoto et al., 2026).

Limits of the benchmarks Weak evidence: few or small studies support this

Not every comparison finds a difference. With GPT-4o on Online-Mind2Web tasks, a shortened DOM (the browser’s tree of the page’s HTML) scored 73% and a GUI snapshot baseline 67%. The gap was not statistically significant: p = 0.47 means a gap this size often arises by chance (Schiepanski & Piel, 2025). Xue et al. report that earlier web agent results were over-optimistic because of shortcomings in the benchmarks, which limits how far any one benchmark generalises (Xue et al., 2025).

What page design changes Weak evidence: few or small studies support this

Agents are sensitive to how a page is presented to them, but the evidence on authored markup, such as ARIA labels or semantic elements, is indirect. It comes from changing the view the agent receives, constraining its input, or adding labels to one kind of element.

Agents rely on the order and text of page elements. On VisualWebArena, shuffling the order of elements cut relative performance by 50% for GPT-4V and 42% for Gemini-1.5, about as much as removing all text descriptions (Chi et al., 2024). Injected faults and pop-ups also significantly lowered success on three benchmarks (Kara et al., 2025).

Text labels decide what agents notice. On a cloned news site, agents clicked banner ads only when semantic button overlays or off-screen text labels were present, and ignored purely visual calls to action (Nitu et al., 2025).

Restricting how a computer-use agent can act cuts its success sharply. A computer-use agent built on Claude Sonnet 4.5 completed 78.3% of 60 tasks by default, 41.67% when restricted to the keyboard, and 28.33% with the view magnified to 150% (Mohanbabu et al., 2026). These are constraints on the agent’s input, not changes to the pages.

Agent interfaces and the human interface Weak evidence: few or small studies support this

Sources disagree on whether sites should build separate interfaces for agents or improve the one they share with people. Lu et al. argue that the web should be built for agents rather than forcing agents to adapt to interfaces designed for humans (Lu et al., 2025b). Cloud Four, quoting WebKit, argues the gap should be closed in the shared HTML and ARIA layers, where users, assistive technology and agents all benefit (Grigsby, 2026). The design vocabulary of affordances and signifiers for software agents is covered in interface design.

Mechanisms for exposing a site to agents

Several mechanisms let a site expose actions or content to an agent directly. The Model Context Protocol (MCP) lets a server expose tools, each with a name and a schema, that a model discovers and calls (Model Context Protocol, 2026d). WebMCP is a proposed browser interface that lets a page expose its functions as tools agents can discover, declared in HTML forms or registered in JavaScript. It is a draft community group report, not a W3C standard (W3C AI Knowledge Representation Community Group, n.d.). Its technical notes raise that these tools are discoverable without a permission prompt (W3C AI Knowledge Representation Community Group, n.d.).

Measured differences Weak evidence: few or small studies support this

Agent interfaces raise success where they cover the task, and combining them with browsing does best. On WebArena with GPT-4o, a browsing agent reached 14.8%, an agent using the sites’ APIs 29.2%, and a hybrid of both 38.9% (Song et al., 2025a). Across four models on four simulated web shops, agents using MCP, NLWeb (a protocol for querying a site in natural language) or retrieval-augmented generation (RAG, which fetches relevant text before answering) completed 0.62 to 0.68 of tasks, against 0.57 for HTML browsing, with about 47k to 140k tokens per task instead of 241k (Steiner et al., 2025).

The advantage is not uniform. On transactional tasks such as checkout, the HTML agent reached a perfect F1 score (a 0-to-1 measure combining precision and completeness) with GPT-4.1 but only 0.64 with GPT-5 (Steiner et al., 2025). On MCPWorld, using only MCP tools underperformed, which the authors attribute largely to limited MCP coverage; the hybrid scored above the graphical interface alone (Yan et al., 2025d).

How the tools are built also matters (see tools for AI agents). With over 18,000 tools built from real services’ APIs, agents that searched for the right tool did as well as or better than browser agents. Smaller models could not take full advantage of the tools (Esfandiarpoor et al., 2025).

The evidence on WebMCP itself is a vendor test. On two CRM tasks, WebMCP tools cut task time by 67-83% and token use by 87-96% compared with the web interface, with no formal success rate (Vallini, 2026). When an MCP server was also available, both agents did the whole task through it and never opened the site (Vallini, 2026).

Files written for agents

Sites publish files meant for language models, but few AI systems fetch them and the measured effects on answers are small. The best-known is llms.txt, a Markdown file at a site’s root that summarises the site and links its main pages. Variants include llms-full.txt, with the full text, and Markdown copies of individual pages. Its proposer argues that context windows are still too small for most whole websites. He expected the file to serve models at inference time, when they answer questions, rather than in training (Howard, 2024).

Who fetches them

Crawlers from AI companies rarely fetch llms.txt. Across 137K sites, 97% of llms.txt files received zero traffic in May 2026, and the analysts conclude the files feed training corpora more than AI search (Linehan, 2026). On one site, the crawlers of Google, Anthropic and OpenAI fetched robots.txt 1,150 times and llms.txt 4 times (Petrovic, 2026). Google’s John Mueller said in 2025 that no AI system uses llms.txt, and in 2026 called its use purely speculative (Schwartz, 2025; Montti, 2026).

Coding agents are the main readers of Markdown copies. On one site, Claude Code made 94% of all Markdown requests; its llms.txt was popular, just not with the AI assistants it was built for (Klubochkina & Turner, 2026). A documentation host reports that 83% of agent traffic in August 2026 came through .md pages, llms.txt or agent skills, while a 25-company sample found a median of 14 visits to llms.txt and 79 to llms-full.txt over seven days (Mintlify, 2026; Chen, 2025).

Agent vendors’ documentation describes fetching pages that a user or a search supplied, not discovering these files. Anthropic’s web fetch tool can only fetch URLs that already appeared in the conversation (Anthropic, n.d.x). OpenAI describes its ChatGPT-User agent as acting on user initiation, not as an automatic crawler, and OpenAI and Cursor mention llms.txt only as an index of their own documentation (OpenAI, n.d.g; Cursor, n.d.e).

The log studies have weak methods. Ahrefs calls every one of its figures a ceiling on actual llms.txt use. The Evil Martians team could not attribute a single Markdown fetch to the hint they had placed on their pages (Linehan, 2026; Klubochkina & Turner, 2026).

Whether they improve answers Weak evidence: few or small studies support this

Having an llms.txt file shows no link to being cited by AI systems. In nearly 300,000 domains, of which 10.13% had the file, removing it as a variable from a model predicting AI citations made the prediction more accurate (Deda, 2026). Search Engine Journal’s report of the data reads it as no direct effect on citation frequency, at least not yet (Southern, 2025).

For agents that do read the file, it can stop them from guessing wrong addresses without changing accuracy. In 2,400 runs on 20 documentation sites, accuracy stayed in the mid-to-high 90s across every format. Linking to llms.txt led to about 90% fewer requests for dead URLs, and inlining the file did the same at a higher token cost (aadit-shah, 2026). A larger gain, from 49% to 91% accuracy on one library, comes from a single-author test on a library the author maintains (Borgia, n.d.). Chrome’s Lighthouse documentation calls llms.txt an emerging convention that may save agents time crawling a site (Montti, 2026).

Agent-readiness scores Weak evidence: few or small studies support this

Agent-readiness scores measure whether a site has agent-facing files and protocols, not whether agents succeed on it. Cloudflare scores sites on four dimensions, without published weights, thresholds or validation against task success (Cloudflare, 2026b). The open-source agent-ready-check scanner weights each check by severity times the maturity of the standard, and its authors say the maturity factor is their own judgment (Salnikov, 2026).

No score has been tied to agent success. A study of 908 brands concluded that implementing the specifications did not improve visibility in LLM answers, an outcome other than task success (CompetLab, 2026). A site owner who raised a site’s Cloudflare score from 33 to 87 says it measures discovery, not efficiency, and did not measure task effects (Alex (fuxuxscheduler), 2026).

Site design can still change agent success. In two versions of one prototype shop, a version designed for agents had 134 passing runs out of 150, against 74 for the baseline. The study is preliminary, with three models and five tasks, and used no readiness score (Elnaffar & Rashidi, 2026).

Content format and chunking Weak evidence: few or small studies support this

The format and division of text change how well models use it, in two preprints. Writing the same prompts as plain text, Markdown, JSON or YAML changed GPT-3.5-turbo’s performance by up to 40% on a code translation task. GPT-4 was more robust (He et al., 2024).

For retrieval systems, which split documents into chunks and fetch the most relevant ones, splitting by content beats splitting by length. Content-aware chunking significantly improved retrieval over fixed-length splitting across six domains and five embedding models. Grouping paragraphs worked best, with a mean nDCG@5 of about 0.459, a 0-to-1 score of how well the top five results are ranked (Shaukat et al., 2026).

Dark patterns aimed at agents Weak evidence: few or small studies support this

Interface tricks that steer people, covered in deceptive design on the web, also mislead agents. With a single dark pattern on a page, web agents fell for it on average 41% of the time (Ersoy et al., 2025). Changing the pattern’s visual design or its HTML changed how susceptible agents were, and the authors call for defences built into agents as a whole (Ersoy et al., 2025).

Further reading

Known gaps

What this article cannot tell you yet.

  1. No controlled experiment varies the markup of the same pages (ARIA labels, accessible names, semantic elements, alt text) while holding the task and the agent fixed, so the effect of semantic markup on agent success is unmeasured.
  2. The comparison of HTML with the accessibility tree comes from one benchmark (WorkArena); other benchmarks compare the accessibility tree with screenshots.
  3. The comparison of MCP, NLWeb, RAG and HTML interfaces to web shops has not been re-run on live websites or with other models.
  4. No independent controlled study compares WebMCP with the same site driven through its human interface; the only direct test is a vendor’s two-task trial.
  5. Most usage data on llms.txt and Markdown copies comes from vendors’ logs, with short windows and undescribed methods for telling bots from people.
  6. No controlled test measures whether llms.txt improves the answers of AI assistants that answer users’ questions from the web.
  7. No agent-readiness score has been validated against agent task success.
  8. Markdown versus HTML for agent answer quality, and claim-level or provenance files for agents, were not researched.
  9. The study of dark patterns aimed at web agents and the WAREX, AgentOccam, TheMCPCompany and Online-Mind2Web results are known from their abstracts only.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 45 references