heap_snapshot
Captures a V8 heap snapshot for an Electron process to investigate memory leaks. Saves the .heapsnapshot file to a specified path for later analysis.
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. |