{
  "slug": "heap-snapshot-tools-accept-named-filters-3fcb9bb72259",
  "title": "Heap snapshot tools accept named filters",
  "tools": [
    "chrome-devtools-mcp"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-14T06:54:28.000Z",
  "announced_at": "2026-07-14T06:54:28.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When inspecting aggregates or class nodes retained through a named source, pass the matching optional `filterName` to the corresponding heap snapshot tool.",
    "examples": [
      "get_heapsnapshot_details({\"filePath\":\"<path-to-heapsnapshot>\",\"filterName\":\"objectsRetainedByDetachedDomNodes\"})",
      "get_heapsnapshot_class_nodes({\"filePath\":\"<path-to-heapsnapshot>\",\"id\":<class-id>,\"filterName\":\"objectsRetainedByConsole\"})"
    ],
    "gotchas": [
      "Version: 1.6.0",
      "filePath (required): Path to the .heapsnapshot file to read.",
      "id (required): Class ID obtained from details; required by get_heapsnapshot_class_nodes.",
      "filterName: Filter to apply to nodes or aggregates. Allowed: objectsRetainedByDetachedDomNodes, objectsRetainedByConsole, objectsRetainedByEventHandlers, objectsRetainedByContexts.",
      "Prerequisite: Enable heap snapshot tools with --memoryDebugging=true.",
      "filterName is optional and applies to nodes or aggregates."
    ]
  },
  "why_it_matters": "When inspecting heap snapshot nodes or aggregates retained through a specific source, apply the matching named filter.",
  "sources": [
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/releases/tag/chrome-devtools-mcp-v1.6.0",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/2323",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/2812902ba9dca67a320f00983e54d03b741388ce/docs/tool-reference.md"
  ],
  "rank": 0.93024,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "ghtools-20261008",
    "verdict_id": "ghtools-20261008:ghtools-20261008-ad448bfd88a45292-3:gate",
    "evidence_hash": "c2bfc7b8b9066545bc882f7153f4a5304f02f84954a03abd994be82d68ff546c"
  },
  "review": {
    "draft_hash": "24dc848e512f350061be9b641d9dfa95025a6bc7d2c257bebfb3db75f053867e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "ghtools-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.93 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
