Chrome DevTools for coding agents
refactor: set defaults to performance trace tool (#1090)
Alex Rudenkodfa9b79a4ecc
diff --git a/docs/tool-reference.md b/docs/tool-reference.mdindex d11829c5..9599115e 100644--- a/docs/tool-reference.md+++ b/docs/tool-reference.md@@ -1,6 +1,6 @@<!-- AUTO GENERATED DO NOT EDIT - run 'npm run docs' to update-->-# 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.tsindex 594c46e7..86713618 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.',),