take_heap_snapshot
Capture a V8 heap snapshot and write it to disk for memory analysis. Identify leaks and optimize performance.
Instructions
Capture a V8 heap snapshot and write it to disk.
The output is the same ``.heapsnapshot`` format Chrome DevTools saves,
loadable via DevTools > Memory > Load.
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": "take_heap_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |