take_memory_snapshot
Capture a heap snapshot of the selected page to analyze JavaScript memory distribution and debug memory leaks.
Instructions
Capture a heap snapshot of the currently selected page. Use to analyze the memory distribution of JavaScript objects and debug memory leaks.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "take_memory_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | A path to a .heapsnapshot file to save the heapsnapshot to. |