memory.heap.compare
Compare two heap snapshots by constructor to show which objects grew or shrank and how many detached DOM nodes accumulated, helping identify memory leaks.
Instructions
Diff two heap snapshots by constructor: what grew, what shrank, and how many detached DOM nodes accumulated. This is how leaks get found.
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": {
"before_artifact_id": "<before_artifact_id>",
"after_artifact_id": "<after_artifact_id>"
},
"name": "memory.heap.compare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| after_artifact_id | Yes | ||
| before_artifact_id | Yes |