豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tool-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---

Expand Down
5 changes: 3 additions & 2 deletions src/tools/performance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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()
Expand Down
Loading