Skip to content

Commit 30ae425

Browse files
committed
chore: try snapshot
1 parent fd54a11 commit 30ae425

21 files changed

Lines changed: 56853 additions & 74 deletions

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# Prettier-only ignores.
22
CHANGELOG.md
3+
src/third_party/lighthouse-devtools-mcp-bundle.js

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ If you run into any issues, checkout our [troubleshooting guide](./docs/troubles
396396

397397
<!-- BEGIN AUTO GENERATED TOOLS -->
398398

399+
- **Audits** (1 tools)
400+
- [`lighthouse_audit`](docs/tool-reference.md#lighthouse_audit)
399401
- **Input automation** (8 tools)
400402
- [`click`](docs/tool-reference.md#click)
401403
- [`drag`](docs/tool-reference.md#drag)

docs/tool-reference.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->
22

3-
# Chrome DevTools MCP Tool Reference (~6661 cl100k_base tokens)
3+
# Chrome DevTools MCP Tool Reference (~6940 cl100k_base tokens)
44

5+
- **[Audits](#audits)** (1 tools)
6+
- [`lighthouse_audit`](#lighthouse_audit)
57
- **[Input automation](#input-automation)** (8 tools)
68
- [`click`](#click)
79
- [`drag`](#drag)
@@ -35,6 +37,20 @@
3537
- [`take_screenshot`](#take_screenshot)
3638
- [`take_snapshot`](#take_snapshot)
3739

40+
## Audits
41+
42+
### `lighthouse_audit`
43+
44+
**Description:** Runs a Lighthouse audit on the currently selected page.
45+
46+
**Parameters:**
47+
48+
- **device** (enum: "desktop", "mobile") _(optional)_: The device to [`emulate`](#emulate). "desktop" is the default. "mobile" emulates a mobile device.
49+
- **mode** (enum: "navigation", "snapshot") _(optional)_: The mode to run Lighthouse in. "navigation" is the default and will reload the current page. "snapshot" analyzes the page in its current state.
50+
- **outputDirPath** (string) _(optional)_: The directory to output the reports to. If not provided, temporary files will be created.
51+
52+
---
53+
3854
## Input automation
3955

4056
### `click`

eslint.config.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ import tseslint from 'typescript-eslint';
1414
import localPlugin from './scripts/eslint_rules/local-plugin.js';
1515

1616
export default defineConfig([
17-
globalIgnores(['**/node_modules', '**/build/']),
17+
globalIgnores([
18+
'**/node_modules',
19+
'**/build/',
20+
'src/third_party/lighthouse-devtools-mcp-bundle.js',
21+
]),
1822
importPlugin.flatConfigs.typescript,
1923
{
2024
languageOptions: {

0 commit comments

Comments
 (0)