From 55115de80e7f8c210d49c7f344c92e534aaa9f0f Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Tue, 3 Mar 2026 21:25:06 +0100 Subject: [PATCH] refactor: set defaults to performance trace tool --- docs/tool-reference.md | 6 +++--- src/tools/performance.ts | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/tool-reference.md b/docs/tool-reference.md index d11829c5e..9599115e3 100644 --- a/docs/tool-reference.md +++ b/docs/tool-reference.md @@ -1,6 +1,6 @@ -# Chrome DevTools MCP Tool Reference (~6919 cl100k_base tokens) +# Chrome DevTools MCP Tool Reference (~6915 cl100k_base tokens) - **[Input automation](#input-automation)** (9 tools) - [`click`](#click) @@ -260,9 +260,9 @@ **Parameters:** -- **autoStop** (boolean) **(required)**: Determines if the trace recording should be automatically stopped. -- **reload** (boolean) **(required)**: Determines if, once tracing has started, the current selected page should be automatically reloaded. Navigate the page to the right URL using the [`navigate_page`](#navigate_page) tool BEFORE starting the trace if reload or autoStop is set to true. +- **autoStop** (boolean) _(optional)_: Determines if the trace recording should be automatically stopped. - **filePath** (string) _(optional)_: The absolute file path, or a file path relative to the current working directory, to save the raw trace data. For example, trace.json.gz (compressed) or trace.json (uncompressed). +- **reload** (boolean) _(optional)_: Determines if, once tracing has started, the current selected page should be automatically reloaded. Navigate the page to the right URL using the [`navigate_page`](#navigate_page) tool BEFORE starting the trace if reload or autoStop is set to true. --- diff --git a/src/tools/performance.ts b/src/tools/performance.ts index 594c46e79..86713618b 100644 --- a/src/tools/performance.ts +++ b/src/tools/performance.ts @@ -36,11 +36,13 @@ export const startTrace = definePageTool({ schema: { reload: zod .boolean() + .default(true) .describe( 'Determines if, once tracing has started, the current selected page should be automatically reloaded. Navigate the page to the right URL using the navigate_page tool BEFORE starting the trace if reload or autoStop is set to true.', ), autoStop: zod .boolean() + .default(true) .describe( 'Determines if the trace recording should be automatically stopped.', ),