Agentic Browsing at zero? A step-by-step fix: llms.txt, accessibility tree, layout shift and WebMCP

Lighthouse's Agentic Browsing category checks whether AI agents can use your site. What each check means, why the score is a fraction that changes, and the fixes that took our pages to all checks passed.

Published · 5 min read · Flowsmith editorialwebAI discoverabilityperformance

A dark doorway with a row of small square tiles leading up to it; most tiles are dim, the ones nearest the door glow blue.
Illustration drawn for this article. No text in the image, so it works in every language.
In short
  • Agentic Browsing is a Lighthouse category that asks: can an AI agent read and use this page? It shows a fraction of checks passed, not a score out of 100.
  • The total changes with the page and the Lighthouse version. On 1 December 2026, with Lighthouse 13.6, our homepage had 4 applicable checks and a lesson with a form had 6. The target is always all of them.
  • Fix order that works: llms.txt → agent manifest → accessibility tree → layout shift → WebMCP on forms.
  • The first two are static files and fix every page of the site at once.

If you run a site through PageSpeed Insights or Lighthouse today, you may see a new category next to performance and accessibility: Agentic Browsing. Many sites we look at show a plain zero there. That does not mean the site is broken for people. It means an AI assistant that tries to read it or fill in its forms on someone's behalf will struggle. This guide goes through each check in the order we fix them, with screenshots of reports from our own pages.

First: why it is a fraction, and why the total moves

The category does not give a score from 0 to 100. It shows passed checks over applicable checks. Which checks apply depends on the page: a page without a form skips the WebMCP form checks, a page with a form gets them. And the category is explicitly "under development": new Lighthouse versions add checks. On the same day the same page can show different totals in different tools, depending on the Lighthouse version they run.

So never set a target like "4/4". Set it as all checks passed, and when you report a number, write the date and the version next to it. That is the rule we use in our own standards.

Lighthouse 13.6 report, Agentic Browsing category, showing 3 of 6 checks passed: layout shift 0.195, accessibility tree not well-formed, WebMCP schemas invalid; passed: form coverage, llms.txt, ARD manifest.
Before: one of our own lesson pages on 1 December 2026, Lighthouse 13.6, desktop. 3 of 6 checks passed.

The fixes, step by step

Step 1. llms.txt

A Markdown file at /llms.txt with a title, a one-paragraph summary and sections of links to your important pages, each with a short description. Lighthouse checks that it exists and follows the recommended structure. Generate it from your pages on every deploy rather than writing it by hand, so it never goes stale. Our article llms.txt: what it is and isn't shows the format and the file we run.

Step 2. The agent manifest (ARD)

A JSON file at /.well-known/ai-catalog.json (and the same content at /.well-known/ard.json) that tells agents who the site is and which machine-callable resources it offers. Three details decide whether it passes:

  • Serve it with Content-Type: application/ai-catalog+json.
  • Allow cross-origin reads: Access-Control-Allow-Origin: *. Without it, browser-based validators report that the catalog could not be loaded even when the file is perfect.
  • Add <link rel="ai-catalog" href="/.well-known/ai-catalog.json"> to every page's head.

List only real resources in it. An empty list is valid; invented entries are not. More in ai-catalog.json and ARD.

Step 3. A well-formed accessibility tree

Agents see your page much like a screen reader does: as a tree of roles and names. The check fails when that tree contains contradictions. The ones we hit:

  • ARIA roles with the wrong children. We had a path chooser marked role="tablist" whose children were links, not role="tab" elements. Either build a real tab pattern (tablist → tab → tabpanel, with keyboard support) or, much simpler, drop the role and use a plain list of links.
  • Buttons and links without a name, typically icon-only buttons. Give them visible text or an aria-label.
  • A label that does not contain the visible text. A search button showing "Search ⌘K" with aria-label="Find a lesson" confuses agents and voice users alike. The accessible name should start with what people see; hide decorative parts such as the shortcut hint with aria-hidden="true".

Step 4. Layout shift (CLS)

An agent finds a button, decides to click, and the button has moved. That is why Cumulative Layout Shift is in the category. Typical causes and fixes:

  • Images without width and height: always set both.
  • Web fonts swapping in with different metrics: use a fallback font with size-adjust and ascent overrides so the swap does not move text, and preload the fonts used above the fold.
  • Content injected after load (banners, embeds): reserve its space in CSS.

Step 5. WebMCP on forms

WebMCP lets a form describe itself as a tool an agent can call. The declarative version is just attributes:

<form toolname="subscribe_newsletter"
      tooldescription="Subscribe an e-mail address to the newsletter. The person gives consent.">
  <input type="email" name="email" toolparamdescription="E-mail address of the person subscribing">
  <input type="checkbox" name="consent" toolparamdescription="Consent given by the person">
</form>

Our "schemas are invalid" warning came from one field we forgot: the hidden honeypot that catches spam bots. Every named field the form submits needs a description, even that one. We left out toolautosubmit on purpose, so an agent can fill the form but a person still confirms the consent and presses the button.

Lighthouse 13.6 report, Agentic Browsing category, all applicable checks passed: accessibility tree, layout shift, llms.txt and ARD manifest; WebMCP form checks not applicable.
After: our homepage on 1 December 2026, Lighthouse 13.6, desktop. All applicable checks passed.

In depth: making it stay green

Fixing it once is easy; keeping it fixed across a hundred pages is the real work. What we do:

  • Generate, never hand-edit, llms.txt, the full-text llms-full.txt, the sitemap and the manifest. They are rebuilt on every deploy from the pages themselves.
  • Fix templates, not pages. Our forms come from one generator, so adding the missing description fixed every lesson and article at once.
  • Measure daily with the real tool. Our scanner runs PageSpeed Insights every night on the key pages and fails a site unless every Agentic Browsing check passed, together with 100 in the four classic categories and nothing flagged in the detailed list. Our checklist for that is in PageSpeed 100 on Cloudflare Pages.

Allowing AI crawlers in robots.txt is the other half of being findable by agents; see robots.txt for AI crawlers. And if you are building a site from scratch, the Academy path from zero to hello world sets all of this up from the first page.

Frequently asked questions

What is Agentic Browsing in Lighthouse?

A Lighthouse category, still under development, that checks how well an AI agent can read and operate a page: a well-formed accessibility tree, stable layout, an llms.txt file, an agent manifest, and correct WebMCP descriptions on forms.

Why does it show 3/6 instead of a score out of 100?

It reports how many applicable checks passed. The total depends on the page and on the Lighthouse version: a page with a form gets extra WebMCP checks, and new versions add checks. So the target is always all checks passed, whatever the total is that day.

What is the quickest win?

Publish a correct llms.txt and an agent manifest at /.well-known/ai-catalog.json. Both are static files and fix two checks for every page of the site at once.

Does WebMCP require JavaScript?

No. The declarative form uses HTML attributes on an existing form: toolname and tooldescription on the form, toolparamdescription on each field. Lighthouse checks that every field the form submits has a description.

Written from our own production systems by the Flowsmith editorial team, with AI assistance.

Want this running in your company?

Flowsmith designs and operates automations like this for small and mid-sized teams — with a person approving anything that leaves the building.

More from the blog