chromedevtools--chrome-devtools-mcp
dfdac2648e
This PR adds tool to perform navigation and snapshot audits using Lighthouse for Accessibility, SEO and Best practices. For performance audits existing tools can be used. Closes https://github.com/ChromeDevTools/chrome-devtools-mcp/issues/473
22 行
480 B
TypeScript
22 行
480 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2026 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import assert from 'node:assert';
|
|
|
|
import type {TestScenario} from '../eval_gemini.ts';
|
|
|
|
export const scenario: TestScenario = {
|
|
prompt: 'Check for best practices on the current page',
|
|
maxTurns: 1,
|
|
expectations: calls => {
|
|
assert.strictEqual(calls.length, 1);
|
|
assert.ok(
|
|
calls[0].name === 'lighthouse_audit',
|
|
'First call should be lighthouse_audit',
|
|
);
|
|
},
|
|
};
|