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

Commit e513db1

Browse files
chore: improve take_memory_snapshot tool description (#1774)
I spotted a missing verb while looking at [the tool reference](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/tool-reference.md#take_memory_snapshot) and decided to tweak the description a bit. WDYT?
1 parent 604c411 commit e513db1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/tool-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- AUTO GENERATED DO NOT EDIT - run 'npm run gen' to update-->
22

3-
# Chrome DevTools MCP Tool Reference (~6940 cl100k_base tokens)
3+
# Chrome DevTools MCP Tool Reference (~6949 cl100k_base tokens)
44

55
- **[Input automation](#input-automation)** (9 tools)
66
- [`click`](#click)
@@ -278,7 +278,7 @@
278278

279279
### `take_memory_snapshot`
280280

281-
**Description:** Capture a memory heapsnapshot of the currently selected page to memory leak debugging
281+
**Description:** Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.
282282

283283
**Parameters:**
284284

src/bin/cliDefinitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ export const commands: Commands = {
582582
},
583583
take_memory_snapshot: {
584584
description:
585-
'Capture a memory heapsnapshot of the currently selected page to memory leak debugging',
585+
'Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.',
586586
category: 'Performance',
587587
args: {
588588
filePath: {

src/tools/memory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {definePageTool} from './ToolDefinition.js';
1111

1212
export const takeMemorySnapshot = definePageTool({
1313
name: 'take_memory_snapshot',
14-
description: `Capture a memory heapsnapshot of the currently selected page to memory leak debugging`,
14+
description: `Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.`,
1515
annotations: {
1616
category: ToolCategory.PERFORMANCE,
1717
readOnlyHint: false,

0 commit comments

Comments
 (0)