take_heapsnapshot
Capture a page's heap snapshot to a .heapsnapshot file for memory debugging and analysis.
Instructions
Capture a heap snapshot of the page to a .heapsnapshot file.
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_heapsnapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Targets a specific page by ID. Defaults to the selected page. | |
| filePath | Yes | Path to a .heapsnapshot file. |