{
  "slug": "chrome-devtools-mcp-get-heapsnapshot-edges-filters-and-sorting-5905264f56ce",
  "title": "chrome-devtools-mcp get_heapsnapshot_edges filters and sorting",
  "tools": [
    "chrome-devtools-mcp"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-25T11:35:48.000Z",
  "announced_at": "2026-08-25T11:35:48.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When inspecting a node’s outgoing heap snapshot edges, call `get_heapsnapshot_edges` with the snapshot path and node ID. Set `excludePrimitives: false` to include primitive targets; optionally filter by minimum retained bytes or choose an edge sort order.",
    "examples": [
      "get_heapsnapshot_edges({\"filePath\":\"<path-to-heapsnapshot>\",\"nodeId\":<node-id>,\"excludePrimitives\":false,\"minRetainedSize\":<bytes>,\"sortBy\":\"name\"})"
    ],
    "gotchas": [
      "Version: 1.8.0",
      "filePath (required): Path to the .heapsnapshot file to read.",
      "nodeId (required): Node ID whose outgoing edges to return.",
      "excludePrimitives: Whether to exclude primitive target nodes; defaults to true. Set false to include them.",
      "minRetainedSize: Minimum retained size in bytes for target nodes.",
      "sortBy: Sort edges by retainedSize, selfSize, or name; defaults to retainedSize. Values are alternatives.",
      "Prerequisite: Enable memory debugging with `--memoryDebugging=true`.",
      "`minRetainedSize` is measured in bytes.",
      "`sortBy` accepts `retainedSize`, `selfSize`, or `name`.",
      "Docs conflict: The newer v1.8.0 tag documentation lists `retainedSize` instead of `minRetainedSize` and omits `minRetainedSize`; this conflicts with the release note. Use the release-note parameter only as documented at the feature commit."
    ]
  },
  "why_it_matters": "Inspect heap snapshot edges while filtering primitive targets or ordering edges by size or name.",
  "sources": [
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/releases/tag/chrome-devtools-mcp-v1.8.0",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/2561",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/b58c613f4b05ade36bbf0d6ba44d5a525ec4d19a/docs/tool-reference.md"
  ],
  "rank": 0.91037,
  "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-03b1ce95dd8dcded-0:gate",
    "evidence_hash": "d1c02b64abd3eac67612ba31a1ccd5e85e0544264fefbebac90e612d2e8a3a01"
  },
  "review": {
    "draft_hash": "60196a3be22b71994276da95ae20fae985a713fc1989e969e8e02d2732288ca9",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "ghtools-20261008:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.91 >= 0.9; 2 needed) and Jev gave 0.81 (>= 0.6 needed)."
  }
}
