leak_check
Detects memory leaks by running garbage collection, measuring DOM and heap counters, repeating an action or wait, and reporting retained node, listener, and heap growth.
Instructions
Memory leak detector: triggers garbage collection, measures baseline DOM and heap counters, repeats an action or wait, runs GC again, and reports retained node/listener/heap growth.
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": "leak_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | No | ||
| processId | No | Process ID. If omitted, uses the single running app. | |
| iterations | No | Number of test action iterations (default: 3) | |
| actionScript | No | Optional JavaScript expression evaluated in the renderer on each iteration | |
| captureSnapshots | No | Whether to capture heap snapshot files before and after (default: false) |