Lighthouse has a new category: Agentic Browsing. It checks whether an AI agent, the kind that opens a page and clicks around for a person, can actually use your site. It needs Chrome 150 or later, Chrome calls it experimental, and it reports pass or fail per check rather than a 0 to 100 score.
We wanted to know how WordPress small business sites do on it, so we ran it from Node on the homepages of a random set of them. The full results and the checklist for site owners are on our blog: Is Your WordPress Site AI Agent Ready?. This post is the developer side: how to run the audit from code, which results you can trust, and which you can't.
In Lighthouse 13.6 the category has seven audits:
| Audit id | What it checks |
|---|---|
agent-accessibility-tree |
Every interactive element has a name; the tree is well-formed |
cumulative-layout-shift |
The page doesn't move while it loads |
webmcp-registered-tools |
WebMCP tools the page registered |
webmcp-form-coverage |
Forms that could carry declarative WebMCP annotations |
webmcp-schema-validity |
Whether those WebMCP schemas are valid |
llms-txt |
Whether /llms.txt follows the recommendations |
ard-schema |
Whether an Agentic Resource Discovery manifest is valid |
The WebMCP, llms.txt and ARD audits are "not applicable" when there is nothing to check, so on most sites the score comes down to the first two.
Our first attempt ran several Lighthouse calls inside one Node process. It broke: runs failed with The "start lh:driver:navigate" performance mark has not been set. Lighthouse keeps global timing state, so it isn't safe to run concurrently in one process. The fix is one process per URL, and a pool outside Node that runs a few of them at a time.
This is the per-URL script, cut down from the one that ran the study:
// one.mjs: one Lighthouse Agentic Browsing run per process.
// node one.mjs <url>
import lighthouse from 'lighthouse';
import * as chromeLauncher from 'chrome-launcher';
const [url] = process.argv.slice(2);
const chrome = await chromeLauncher.launch({
chromeFlags: ['--headless=new', '--disable-gpu', '--no-first-run', '--mute-audio'],
});
// A hard guard: some sites hang the run, and a hung process holds its Chrome open.
const guard = setTimeout(async () => {
try { await chrome.kill(); } catch {}
process.stdout.write(JSON.stringify({ url, error: 'timeout' }));
process.exit(0);
}, 100000);
let res;
try {
const { lhr } = await lighthouse(url, {
port: chrome.port,
output: 'json',
logLevel: 'error',
onlyCategories: ['agentic-browsing'],
formFactor: 'desktop',
screenEmulation: { mobile: false, width: 1350, height: 940, deviceScaleFactor: 1, disabled: false },
throttlingMethod: 'provided',
maxWaitForLoad: 30000,
});
res = { url, score: lhr.categories['agentic-browsing']?.score ?? null, audits: summarize(lhr) };
} catch (e) {
res = { url, error: String(e.message || e) };
} finally {
try { await chrome.kill(); } catch {}
}
process.stdout.write(JSON.stringify(res));
process.exit(0);
We used desktop settings because the agents that browse for people today run in desktop browsers, and throttlingMethod: 'provided' because nothing in this category depends on simulated network speed.
The pool itself was a few lines of Python: a thread pool that calls node one.mjs <url> with subprocess.run(..., timeout=120) and appends each line of output to a JSONL file, so a crash halfway through loses nothing. We ran 8 at a time on a 10-core laptop.
The score alone tells you little. The useful part is in details. For agent-accessibility-tree, the failing rules sit in nested tables: a list of list-section items, each holding a table whose items have a description (the rule) and a node (the element, with a selector and an HTML snippet). Rather than hard-code that shape, we walked the object and collected every table's items:
function summarize(lhr) {
const ids = ['agent-accessibility-tree', 'webmcp-registered-tools', 'webmcp-form-coverage',
'cumulative-layout-shift', 'llms-txt', 'ard-schema'];
const out = {};
for (const id of ids) {
const x = lhr.audits[id];
if (!x) continue;
const rows = [];
const walk = (o) => {
if (!o || typeof o !== 'object') return;
if (Array.isArray(o)) return o.forEach(walk);
if (o.type === 'table' && Array.isArray(o.items)) rows.push(...o.items);
Object.values(o).forEach((v) => v && typeof v === 'object' && walk(v));
};
walk(x.details || {});
const extra = {};
if (id === 'agent-accessibility-tree') {
extra.fails = {};
for (const r of rows) if (r.description) extra.fails[r.description] = (extra.fails[r.description] || 0) + 1;
}
if (id.startsWith('webmcp-')) extra.items = rows.length;
out[id] = { score: x.score, mode: x.scoreDisplayMode, value: x.numericValue ?? null, err: x.explanation || '', ...extra };
}
return out;
}
scoreDisplayMode matters: notApplicable means there was nothing to check, which is different from a fail with score 0. For layout shift, numericValue is the CLS value itself.
On many sites, llms-txt and ard-schema came back as failed, with explanations like Fetch of llms.txt failed: Timed out fetching resource and ARD manifest could not be loaded for schema validation. These were sites that have neither file. It happened in single, unloaded runs too, not only when we ran several at once.
So for those two files we skipped Lighthouse and fetched them directly. The check is simple: a valid llms.txt is a 200 response that isn't an HTML page, has a Markdown # heading, and has some content:
import re, requests
UA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/158.0.0.0 Safari/537.36'
def get(u):
try:
r = requests.get(u, timeout=20, headers={'User-Agent': UA}, allow_redirects=True)
return r.status_code, r.headers.get('content-type', ''), r.text[:20000]
except Exception as e:
return None, '', type(e).__name__
def check(root):
s, ct, t = get(root + '/llms.txt')
html = t.lstrip()[:200].lower().startswith(('<!doctype', '<html')) or 'text/html' in ct
llms_valid = s == 200 and not html and bool(re.search(r'^#\s+\S', t, re.M)) and len(t) >= 50
s2, _, t2 = get(root + '/.well-known/ard.json')
ard = s2 == 200 and t2.lstrip().startswith('{')
return {'llms_valid': llms_valid, 'ard': ard}
The HTML test matters on WordPress: some sites answer /llms.txt with a normal page and a 200, which is not an llms.txt file.
webmcp-registered-tools can only list tools that the page registered through the WebMCP API. In Chrome, that API exists on a page only when WebMCP is switched on for the origin, through the origin trial or the testing flag. You can see the difference with puppeteer:
import puppeteer from 'puppeteer';
const browser = await puppeteer.launch({ headless: 'new' });
const page = await browser.newPage();
await page.goto(process.argv[2], { waitUntil: 'load', timeout: 45000 });
console.log(await page.evaluate(() => ({ modelContext: !!document.modelContext })));
await browser.close();
On a Shopify storefront we tested it printed true, and Lighthouse listed the store's tools. On sites without WebMCP switched on it printed false, so any tools a plugin tries to register never show up, and Lighthouse reports "not applicable". If you are building WebMCP tools, test with the testing flag (chrome://flags/#enable-webmcp-testing, in Chrome Canary) before you read anything into that audit.
With those caveats handled, here is how the WordPress homepages did:
agent-accessibility-tree.
Inside the accessibility tree, one rule dominated: links must have discernible text, failed by 69% of all homepages.
We parsed the raw HTML of the homepages that failed it to see which links. 74% had a logo or other image link with no alt text, 44% had social icons with no label, and 38% had empty links. The median failing homepage had 6 nameless links. The fixes are content work in the WordPress admin, not code: alt text on the logo in the Media Library, labels on social icon widgets, and deleting empty links.
Method, in one line: a random set of WordPress small-business homepages, Lighthouse 13.6, desktop, Chrome 158, 1 December 2026, with llms.txt and ARD fetched directly as above. Homepages only, because in Vercel's study of 1,033 agent runs the homepage was the agent's first step in 92% of the runs that reached it.
The site owner's version, with the 7-point checklist and a test for every check: Is Your WordPress Site AI Agent Ready? A 7-Point Checklist.