{
  "slug": "get-heapsnapshot-details-filters-by-native-context-5c861ccc987c",
  "title": "get_heapsnapshot_details filters by native context",
  "tools": [
    "chrome-devtools-mcp"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-10T08:14:18.000Z",
  "announced_at": "2026-08-10T08:14:18.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When investigating memory use with a loaded heap snapshot, call `get_heapsnapshot_details` with an applicable native-context `filterName` to narrow aggregates. For `attributedToSpecificNativeContext`, also pass that context’s `objectId`.",
    "examples": [
      "get_heapsnapshot_details({\"filePath\":\"<path-to-heapsnapshot>\",\"filterName\":\"sharedNativeContext\"})",
      "get_heapsnapshot_details({\"filePath\":\"<path-to-heapsnapshot>\",\"filterName\":\"attributedToSpecificNativeContext\",\"objectId\":<context-node-id>})"
    ],
    "gotchas": [
      "Version: 1.7.0",
      "filePath (required): Path to the .heapsnapshot file to read.",
      "filterName: Optional aggregate filter. Allowed: objectsRetainedByDetachedDomNodes, objectsRetainedByConsole, objectsRetainedByEventHandlers, objectsRetainedByContexts, sharedNativeContext, noNativeContext, attributedToSpecificNativeContext.",
      "objectId: Specific native context object ID (nodeId), used when filterName is attributedToSpecificNativeContext.",
      "Prerequisite: Requires `--memoryDebugging=true`.",
      "The `filterName` and `objectId` parameters are optional.",
      "`objectId` is for the `attributedToSpecificNativeContext` filter.",
      "The documented filters apply to nodes or aggregates."
    ]
  },
  "why_it_matters": "Narrow heap snapshot object or aggregate results to a native context while investigating memory use.",
  "sources": [
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/releases/tag/chrome-devtools-mcp-v1.7.0",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/2377",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/76fd2424984827802867672fcc8d0e0036f4a3af/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-23b1f711d2526606-3:gate",
    "evidence_hash": "9eabfc4ebc7aee86ea67c53cf8ded2b43a3cbe2f67a8422ce49d83f1123ea9d9"
  },
  "review": {
    "draft_hash": "85c76bda9228faba903a69520053455df59756fbd173f98c9a13b2c61daf00cd",
    "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.78 (>= 0.6 needed)."
  }
}
