Skip to content

Commit 5fa2750

Browse files
lusayaaLusa ZhanOrKoN
authored
feat: agentic browsing in lighthouse (#1931)
pending GoogleChrome/lighthouse#16980 --------- Co-authored-by: Lusa Zhan <lusazhan@chromium.org> Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
1 parent a90378a commit 5fa2750

8 files changed

Lines changed: 12633 additions & 11158 deletions

docs/tool-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run gen' to update-->
22

3-
# Chrome DevTools MCP Tool Reference (~7005 cl100k_base tokens)
3+
# Chrome DevTools MCP Tool Reference (~7010 cl100k_base tokens)
44

55
- **[Input automation](#input-automation)** (9 tools)
66
- [`click`](#click)
@@ -346,7 +346,7 @@ so returned values have to be JSON-serializable.
346346

347347
### `lighthouse_audit`
348348

349-
**Description:** Get Lighthouse score and reports for accessibility, SEO and best practices. This excludes performance. For performance audits, run [`performance_start_trace`](#performance_start_trace)
349+
**Description:** Get Lighthouse score and reports for accessibility, SEO, best practices, and agentic browsing. This excludes performance. For performance audits, run [`performance_start_trace`](#performance_start_trace)
350350

351351
**Parameters:**
352352

package-lock.json

Lines changed: 49 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"eslint-import-resolver-typescript": "^4.4.4",
7070
"eslint-plugin-import": "^2.32.0",
7171
"globals": "^17.0.0",
72-
"lighthouse": "13.1.0",
72+
"lighthouse": "13.2.0",
7373
"prettier": "^3.6.2",
7474
"puppeteer": "24.42.0",
7575
"rollup": "4.60.2",

src/bin/chrome-devtools-cli-options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ export const commands: Commands = {
397397
},
398398
lighthouse_audit: {
399399
description:
400-
'Get Lighthouse score and reports for accessibility, SEO and best practices. This excludes performance. For performance audits, run performance_start_trace',
400+
'Get Lighthouse score and reports for accessibility, SEO, best practices, and agentic browsing. This excludes performance. For performance audits, run performance_start_trace',
401401
category: 'Debugging',
402402
args: {
403403
mode: {

src/third_party/LIGHTHOUSE_MCP_BUNDLE_THIRD_PARTY_NOTICES

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ SOFTWARE.
120120

121121
Name: axe-core
122122
URL: https://www.deque.com/axe/
123-
Version: 4.11.2
123+
Version: 4.11.4
124124
License: MPL-2.0
125125

126126
Mozilla Public License, version 2.0
@@ -1556,7 +1556,7 @@ SOFTWARE.
15561556

15571557
Name: puppeteer-core
15581558
URL: https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core
1559-
Version: 24.40.0
1559+
Version: 24.42.0
15601560
License: Apache-2.0
15611561

15621562
-------------------- DEPENDENCY DIVIDER --------------------
@@ -1622,7 +1622,7 @@ SOFTWARE.
16221622

16231623
Name: tldts-core
16241624
URL: https://github.com/remusao/tldts#readme
1625-
Version: 7.0.27
1625+
Version: 7.0.29
16261626
License: MIT
16271627

16281628
Copyright (c) 2017 Thomas Parisot, 2018 Rémi Berson
@@ -1644,7 +1644,7 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTH
16441644

16451645
Name: tldts-icann
16461646
URL: https://github.com/remusao/tldts#readme
1647-
Version: 7.0.27
1647+
Version: 7.0.29
16481648
License: MIT
16491649

16501650
Copyright (c) 2017 Thomas Parisot, 2018 Rémi Berson
@@ -1686,7 +1686,7 @@ PERFORMANCE OF THIS SOFTWARE.
16861686

16871687
Name: web-features
16881688
URL: git+https://github.com/web-platform-dx/web-features.git
1689-
Version: 3.21.0
1689+
Version: 3.25.0
16901690
License: Apache-2.0
16911691

16921692
Apache License

src/third_party/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,19 @@ import {
5959
snapshot as snapshotImpl,
6060
navigation as navigationImpl,
6161
generateReport as generateReportImpl,
62+
agenticBrowsingConfig as agenticBrowsingConfigImpl,
6263
} from './lighthouse-devtools-mcp-bundle.js';
6364

65+
export const agenticBrowsingConfig = agenticBrowsingConfigImpl;
66+
6467
export const snapshot = snapshotImpl as (
6568
page: Page,
66-
options: {flags?: Flags},
69+
options: {flags?: Flags; config?: object},
6770
) => Promise<RunnerResult>;
6871
export const navigation = navigationImpl as (
6972
page: Page,
7073
url: string,
71-
options: {flags?: Flags},
74+
options: {flags?: Flags; config?: object},
7275
) => Promise<RunnerResult>;
7376
export const generateReport = generateReportImpl as (
7477
lhr: Result,

0 commit comments

Comments
 (0)