Skip to content

Commit b877f7a

Browse files
authored
fix: add 'on the selected page' to performance tools (#69)
To hopefully ensure the client makes sure to navigate to and select a page before starting the trace. Bug: 446171427
1 parent d545741 commit b877f7a

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/tool-reference.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219

220220
### `performance_analyze_insight`
221221

222-
**Description:** Provides more detailed information on a specific Performance Insight that was highlighed in the results of a trace recording
222+
**Description:** Provides more detailed information on a specific Performance Insight that was highlighed in the results of a trace recording.
223223

224224
**Parameters:**
225225

@@ -229,7 +229,7 @@
229229

230230
### `performance_start_trace`
231231

232-
**Description:** Starts a performance trace recording
232+
**Description:** Starts a performance trace recording on the selected page.
233233

234234
**Parameters:**
235235

@@ -240,7 +240,7 @@
240240

241241
### `performance_stop_trace`
242242

243-
**Description:** Stops the active performance trace recording
243+
**Description:** Stops the active performance trace recording on the selected page.
244244

245245
**Parameters:** None
246246

src/tools/performance.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {ToolCategories} from './categories.js';
1818

1919
export const startTrace = defineTool({
2020
name: 'performance_start_trace',
21-
description: 'Starts a performance trace recording',
21+
description: 'Starts a performance trace recording on the selected page.',
2222
annotations: {
2323
category: ToolCategories.PERFORMANCE,
2424
readOnlyHint: true,
@@ -98,7 +98,8 @@ export const startTrace = defineTool({
9898

9999
export const stopTrace = defineTool({
100100
name: 'performance_stop_trace',
101-
description: 'Stops the active performance trace recording',
101+
description:
102+
'Stops the active performance trace recording on the selected page.',
102103
annotations: {
103104
category: ToolCategories.PERFORMANCE,
104105
readOnlyHint: true,
@@ -116,7 +117,7 @@ export const stopTrace = defineTool({
116117
export const analyzeInsight = defineTool({
117118
name: 'performance_analyze_insight',
118119
description:
119-
'Provides more detailed information on a specific Performance Insight that was highlighed in the results of a trace recording',
120+
'Provides more detailed information on a specific Performance Insight that was highlighed in the results of a trace recording.',
120121
annotations: {
121122
category: ToolCategories.PERFORMANCE,
122123
readOnlyHint: true,

0 commit comments

Comments
 (0)