Chrome DevTools for coding agents
fix: add core web vitals to performance_start_trace description (#168)
Jack Franklin6cfc9774f4ec
diff --git a/docs/tool-reference.md b/docs/tool-reference.mdindex 60b45e79..83873579 100644--- a/docs/tool-reference.md+++ b/docs/tool-reference.md@@ -229,12 +229,12 @@### `performance_start_trace`-**Description:** Starts a performance trace recording on the selected page.+**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.**Parameters:**- **autoStop** (boolean) **(required)**: Determines if the trace recording should be automatically stopped.-- **reload** (boolean) **(required)**: Determines if, once tracing has started, the page should be automatically reloaded+- **reload** (boolean) **(required)**: Determines if, once tracing has started, the page should be automatically reloaded.---diff --git a/src/tools/performance.ts b/src/tools/performance.tsindex 6d0956cc..1225f551 100644--- a/src/tools/performance.ts+++ b/src/tools/performance.ts@@ -22,7 +22,8 @@ import {defineTool} from './ToolDefinition.js';export const startTrace = defineTool({name: 'performance_start_trace',- description: 'Starts a performance trace recording on the selected page.',+ 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.',annotations: {category: ToolCategories.PERFORMANCE,readOnlyHint: true,@@ -31,7 +32,7 @@ export const startTrace = defineTool({reload: z.boolean().describe(- 'Determines if, once tracing has started, the page should be automatically reloaded',+ 'Determines if, once tracing has started, the page should be automatically reloaded.',),autoStop: z.boolean()