From e8e54ea87e487a1fa930d9a13b1b2293e75b4006 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Tue, 31 Mar 2026 12:56:19 +0200 Subject: [PATCH] chore: improve take_memory_snapshot tool description --- docs/tool-reference.md | 4 ++-- src/bin/cliDefinitions.ts | 2 +- src/tools/memory.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/tool-reference.md b/docs/tool-reference.md index 50b4c02c5..bdc0c6ed6 100644 --- a/docs/tool-reference.md +++ b/docs/tool-reference.md @@ -1,6 +1,6 @@ -# Chrome DevTools MCP Tool Reference (~6940 cl100k_base tokens) +# Chrome DevTools MCP Tool Reference (~6949 cl100k_base tokens) - **[Input automation](#input-automation)** (9 tools) - [`click`](#click) @@ -278,7 +278,7 @@ ### `take_memory_snapshot` -**Description:** Capture a memory heapsnapshot of the currently selected page to memory leak debugging +**Description:** Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks. **Parameters:** diff --git a/src/bin/cliDefinitions.ts b/src/bin/cliDefinitions.ts index d32705617..55aa68d45 100644 --- a/src/bin/cliDefinitions.ts +++ b/src/bin/cliDefinitions.ts @@ -582,7 +582,7 @@ export const commands: Commands = { }, take_memory_snapshot: { description: - 'Capture a memory heapsnapshot of the currently selected page to memory leak debugging', + 'Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.', category: 'Performance', args: { filePath: { diff --git a/src/tools/memory.ts b/src/tools/memory.ts index 43e9ea780..b1f302ae1 100644 --- a/src/tools/memory.ts +++ b/src/tools/memory.ts @@ -11,7 +11,7 @@ import {definePageTool} from './ToolDefinition.js'; export const takeMemorySnapshot = definePageTool({ name: 'take_memory_snapshot', - description: `Capture a memory heapsnapshot of the currently selected page to memory leak debugging`, + description: `Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.`, annotations: { category: ToolCategory.PERFORMANCE, readOnlyHint: false,