Lighthouse agentic browsing scoring
摘要
该 Lighthouse 分类用于评估网站是否适合机器/AI 代理交互,重点不是传统加权评分,而是收集信号并提供可操作反馈。 结果展示包括:通过检查的分数比例(fractional pass ratio)、各项审计的通过/失败状态(如 WebMCP schema 合规性)、以及用于整体进度参考的信息性统计。 结果可能波动,原因包括:基于 JavaScript 的工具注册时序差异、DOM 复杂度变化影响无障碍树结构、以及由广告/图片/动态内容引起的 CLS(累积布局偏移)。 审计基于确定性信号,保证可复现并适合 CI/CD 流程,底层通过 Chrome DevTools Protocol 的 WebMCP 监测工具注册(包括声明式与命令式工具)。 评估重点包括:无障碍树(a11y tree)的结构与可访问性(名称与标签、角色层级正确性、内容可见性)、页面稳定性(CLS)、以及是否提供机器可读入口(如 llms.txt)。 优化建议包括:采用 WebMCP 显式暴露站点能力、使用语义化 HTML 与 ARIA 改善无障碍结构、以及降低布局偏移以提升交互稳定性。
荐读理由
读者画像要求寻求的1-4项均为空(不成立),且正文无任何交付方法、洞见、变化或市场信号;反价值中2(产品发布稿)命中,读者时间有限不会取走无信息增量的公关式技术报道。
原文
Lighthouse agentic browsing scoring Stay organized with collections Save and categorize content based on your preferences.
The Agentic Browsing category evaluates how well your site is constructed for machine interaction through a set of deterministic audits.
How the category is scored
Unlike other Lighthouse categories, the Agentic Browsing category does not have a weighted average score from 0 to 100. Because the standards for the agentic web are still emerging, the current focus is to gather data and provide actionable signals rather than a definitive ranking.
Instead of a score, the report displays:
A fractional score: A ratio showing how many agentic readiness checks your site passes.
Pass or Fail status: Specific audits may emit errors or warnings if technical requirements (like WebMCP schema validity) are not met.
Informational counts: The category header may include a pass ratio to help you observe overall progress at a glance.
Why results fluctuate
While the audits are deterministic, your results may fluctuate due to changes in how your site registers its tools or responds to agentic requests. Common causes include:
Dynamic tool registration: If your site registers WebMCP tools using JavaScript (Imperative API), the timing of these registrations can affect whether they are captured during the Lighthouse snapshot.
Variability in A11y tree construction: Significant changes to DOM size or complexity can impact the structure of the accessibility tree, which is a core metric for agentic navigation.
Cumulative Layout Shift (CLS): Layout shifts caused by ads, images without dimensions, or injected content can move elements between the time an agent identifies them and the time it attempts an interaction.
How audits are determined
Lighthouse uses a set of deterministic signals to evaluate your page. This ensures that the audits are reproducible and suitable for integration into CI/CD pipelines.
WebMCP Integration
Lighthouse calls the Chrome DevTools Protocol (CDP) WebMCP domain to monitor tool registration events. It verifies both declarative tools (defined in HTML) and imperative tools (defined in JS).
Agent-Centric Accessibility
Agents rely on the accessibility tree as their primary data model. Lighthouse filters a specific subset of accessibility audits that are critical for machine interaction, such as:
Names and labels: Ensuring every interactive element has a programmatic name.
Tree integrity: Verifying that roles and parent-child relationships are valid.
Visibility: Confirming that content is not hidden from the accessibility tree while being interactive.
Stability and Discoverability
Cumulative Layout Shift (CLS): Measures visual stability, which is critical for agents relying on element positioning.
llms.txt: Checks for the presence of a machine-readable summary at the domain root.
What can developers do to improve?
To improve your site's agentic readiness:
Adopt WebMCP: Use the WebMCP API to explicitly expose your site's logic and forms to AI agents.
Ensure a sound a11y tree: Prioritize semantic HTML and proper ARIA labeling, as these are the "machine-eye view" of your page.
Optimize for stability: Reduce layout shifts to ensure that agents can reliably interact with your UI without elements moving unexpectedly.
Feedback
If you encounter bugs or have suggestions for changes to the agentic browsing audit:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-05 UTC.
这条对你有帮助吗?