Memory Leak Scan
memory_scanDetects memory leaks in code by finding addEventListener calls without cleanup, useEffect hooks without return, and setInterval without clearInterval.
Instructions
Detect memory leaks: addEventListener without cleanup, useEffect without return, setInterval without clearInterval.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "memory_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the repository root |