Take heap snapshot
take_memory_snapshotCapture a V8 heap snapshot to debug memory leaks by comparing retained objects before and after an interaction.
Instructions
Capture a V8 heap snapshot of the page, for memory-leak debugging.
Writes the raw .heapsnapshot file for Chrome DevTools -> Memory -> Load. The usual workflow is two snapshots taken around a suspect interaction, then comparing retained objects between them.
On a heavy page a snapshot can be hundreds of megabytes and take several seconds; the response reports the resulting file size.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Local path to write the .heapsnapshot file to. Open it in DevTools -> Memory -> Load profile. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |