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

Commit 6f91f6a

Browse files
committed
fix(mcp) : improve tool invocation reliability for agents
Addresses cases where DevTools MCP tools were not consistently picked up from natural language prompts by improving tool descriptions and metadata. Refs ChromeDevTools#940
1 parent 8d765c0 commit 6f91f6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/performance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const filePathSchema = zod
2828

2929
export const startTrace = defineTool({
3030
name: 'performance_start_trace',
31-
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.`,
31+
description: `Start a performance trace on the selected webpage. Use to find frontend performance issues, Core Web Vitals (LCP, FID, CLS), and improve page load speed.`,
3232
annotations: {
3333
category: ToolCategory.PERFORMANCE,
3434
readOnlyHint: false,
@@ -115,7 +115,7 @@ export const startTrace = defineTool({
115115
export const stopTrace = defineTool({
116116
name: 'performance_stop_trace',
117117
description:
118-
'Stops the active performance trace recording on the selected page.',
118+
'Stop the active performance trace recording on the selected webpage.',
119119
annotations: {
120120
category: ToolCategory.PERFORMANCE,
121121
readOnlyHint: false,

0 commit comments

Comments
 (0)