take_heapsnapshot
Capture a heap snapshot to analyze JavaScript memory distribution and debug memory leaks in the current page.
Instructions
Capture a heap snapshot of the target 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": {
"pageId": "<pageId>",
"filePath": "<filePath>"
},
"name": "take_heapsnapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | Targets a specific page by ID. | |
| filePath | Yes | A path to a .heapsnapshot file to save the heapsnapshot to. |