{
  "slug": "chrome-devtools-mcp-adds-get-heapsnapshot-retaining-paths-8b8825d37b7d",
  "title": "chrome-devtools-mcp adds get_heapsnapshot_retaining_paths",
  "tools": [
    "chrome-devtools-mcp"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-18T09:53:08.000Z",
  "announced_at": "2026-06-18T09:53:08.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a heap snapshot object is not being garbage collected, use `get_heapsnapshot_retaining_paths` to find its retaining paths to GC roots. Start the MCP server with `--memoryDebugging=true`, then pass the snapshot path and node ID; optionally bound the search with `maxDepth`, `maxNodes`, or `maxSiblings`.",
    "examples": [
      "get_heapsnapshot_retaining_paths({\"filePath\":\"<path>.heapsnapshot\",\"nodeId\":<node-id>})",
      "get_heapsnapshot_retaining_paths({\"filePath\":\"<path>.heapsnapshot\",\"nodeId\":<node-id>,\"maxDepth\":<depth>,\"maxNodes\":<count>,\"maxSiblings\":<count>})"
    ],
    "gotchas": [
      "Version: 1.3.0",
      "filePath (required): Path to a .heapsnapshot file to read.",
      "nodeId (required): Node ID to get retaining paths for.",
      "maxDepth: Maximum depth to search for retaining paths.",
      "maxNodes: Maximum number of nodes to return.",
      "maxSiblings: Maximum number of siblings to return.",
      "Prerequisite: Enable memory debugging with `--memoryDebugging=true`.",
      "Prerequisite: Provide a `.heapsnapshot` file path and a node ID.",
      "Requires `--memoryDebugging=true`.",
      "Requires a `.heapsnapshot` file path and a node ID."
    ]
  },
  "why_it_matters": "When debugging why a heap snapshot object is not garbage collected, find its retaining paths to the GC roots.",
  "sources": [
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/releases/tag/chrome-devtools-mcp-v1.3.0",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/2187",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/chrome-devtools-mcp-v1.3.0/docs/tool-reference.md"
  ],
  "rank": 0.97022,
  "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-607b88c6681bf537-1:gate",
    "evidence_hash": "d54799d541387fedc5cd7590740e210e3859b9569b858a51719f5d86b17fbc80"
  },
  "review": {
    "draft_hash": "f017ed01389641c4ede34a6171c021b2b0289b23e3562ba041a031b796e25654",
    "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.97 >= 0.9; 2 needed) and Jev gave 0.82 (>= 0.6 needed)."
  }
}
