Skip to content

Commit 6b8f361

Browse files
committed
chore: fixes
1 parent dff4104 commit 6b8f361

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

docs/tool-reference.md

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

3-
# Chrome DevTools MCP Tool Reference (~6915 cl100k_base tokens)
3+
# Chrome DevTools MCP Tool Reference (~6927 cl100k_base tokens)
44

55
- **[Input automation](#input-automation)** (9 tools)
66
- [`click`](#click)
@@ -165,7 +165,7 @@
165165

166166
### `navigate_page`
167167

168-
**Description:** Navigates the currently selected page to a URL.
168+
**Description:** Go to a URL, or back, forward, or reload. Use project URL if not specified otherwise.
169169

170170
**Parameters:**
171171

@@ -180,7 +180,7 @@
180180

181181
### `new_page`
182182

183-
**Description:** Creates a new page
183+
**Description:** Open a new tab and load a URL. Use project URL if not specified otherwise.
184184

185185
**Parameters:**
186186

@@ -256,7 +256,7 @@
256256

257257
### `performance_start_trace`
258258

259-
**Description:** Starts a performance trace recording on the selected page. This can be used to look for performance problems and insights to improve the performance of the page. It will also report Core Web Vital (CWV) scores for the page.
259+
**Description:** Start a performance trace on the selected webpage. Use to find frontend performance issues, Core Web Vitals (LCP, INP, CLS), and improve page load speed.
260260

261261
**Parameters:**
262262

@@ -268,7 +268,7 @@
268268

269269
### `performance_stop_trace`
270270

271-
**Description:** Stops the active performance trace recording on the selected page.
271+
**Description:** Stop the active performance trace recording on the selected webpage.
272272

273273
**Parameters:**
274274

scripts/eval_scenarios/fix_webpage_issues_test.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ export const scenario: TestScenario = {
3939
},
4040
expectations: calls => {
4141
const NAVIGATION_TOOLS = ['navigate_page', 'new_page'];
42-
assert.ok(calls.length >= 2, 'Expected at least navigation and one inspection');
43-
const navigationIndex = calls.findIndex(c => NAVIGATION_TOOLS.includes(c.name));
42+
assert.ok(
43+
calls.length >= 2,
44+
'Expected at least navigation and one inspection',
45+
);
46+
const navigationIndex = calls.findIndex(c =>
47+
NAVIGATION_TOOLS.includes(c.name),
48+
);
4449
assert.ok(
4550
navigationIndex !== -1,
4651
`Expected a navigation call (${NAVIGATION_TOOLS.join(' or ')}), got: ${calls.map(c => c.name).join(', ')}`,

src/main.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ import {VERSION} from './version.js';
1717

1818
export const args = parseArguments(VERSION);
1919

20-
if (args.slim === undefined) {
21-
args.slim = false;
22-
}
23-
2420
const logFile = args.logFile ? saveLogsToFile(args.logFile) : undefined;
2521
if (
2622
process.env['CI'] ||

src/tools/pages.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ export const closePage = defineTool({
8787

8888
export const newPage = defineTool({
8989
name: 'new_page',
90-
91-
description: `Open a new tab and load a URL. If no URL given, ask to run from current directory or for the URL.`,
90+
description: `Open a new tab and load a URL. Use project URL if not specified otherwise.`,
9291
annotations: {
9392
category: ToolCategory.NAVIGATION,
9493
readOnlyHint: false,

0 commit comments

Comments
 (0)