heap_snapshot
Capture a V8 heap snapshot (.heapsnapshot) from a running Electron app to investigate memory leaks and analyze retained objects.
Instructions
Take a V8 heap snapshot (.heapsnapshot) for leak investigation
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "heap_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| targetId | No | ||
| processId | No | Process ID. If omitted, uses the single running app. |