Skip to content

Commit 4667438

Browse files
Lusa ZhanOrKoN
authored andcommitted
gen docs and run agentic browsing by default
1 parent f5124a3 commit 4667438

4 files changed

Lines changed: 10 additions & 17 deletions

File tree

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

src/bin/cliDefinitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export const commands: Commands = {
275275
},
276276
lighthouse_audit: {
277277
description:
278-
'Get Lighthouse score and reports for accessibility, SEO and best practices. This excludes performance. For performance audits, run performance_start_trace',
278+
'Get Lighthouse score and reports for accessibility, SEO, best practices, and agentic browsing. This excludes performance. For performance audits, run performance_start_trace',
279279
category: 'Debugging',
280280
args: {
281281
mode: {

src/third_party/lighthouse-devtools-mcp-bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Lighthouse v13.1.0-16-g71c7ac88f (Apr 22 2026)
2+
* Lighthouse v13.1.0-17-ge2666246d (Apr 23 2026)
33
*
44
* Automated auditing, performance metrics, and best practices for the web.
55
*

src/tools/lighthouse.ts

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,10 @@ export const lighthouseAudit = definePageTool({
4343
.string()
4444
.optional()
4545
.describe('Directory for reports. If omitted, uses temporary files.'),
46-
categories: zod
47-
.array(zod.string())
48-
.optional()
49-
.describe(
50-
'Categories to run. If omitted, defaults to accessibility, seo, best-practices, and agentic browsing.',
51-
),
5246
},
5347
handler: async (request, response, context) => {
5448
const page = request.page;
55-
const defaultCategories = [
49+
const categories = [
5650
'accessibility',
5751
'seo',
5852
'best-practices',
@@ -63,13 +57,12 @@ export const lighthouseAudit = definePageTool({
6357
mode = 'navigation',
6458
device = 'desktop',
6559
outputDirPath,
66-
categories: requestedCategories = defaultCategories,
6760
} = request.params;
6861

6962
context.validatePath(outputDirPath);
7063

7164
const flags: Flags = {
72-
onlyCategories: requestedCategories,
65+
onlyCategories: categories,
7366
output: formats,
7467
// Default 30 second timeout for page load.
7568
maxWaitForLoad: 30_000,
@@ -95,10 +88,10 @@ export const lighthouseAudit = definePageTool({
9588
};
9689
}
9790

98-
const options: {flags: Flags; config?: object} = {flags};
99-
if (requestedCategories.includes('agentic-browsing')) {
100-
options.config = agenticBrowsingConfig;
101-
}
91+
const options: {flags: Flags; config?: object} = {
92+
flags,
93+
config: agenticBrowsingConfig,
94+
};
10295

10396
let result: RunnerResult | undefined;
10497
try {

0 commit comments

Comments
 (0)