{
  "slug": "chrome-devtools-mcp-heap-snapshot-size-range-filters-91780f590fda",
  "title": "chrome-devtools-mcp heap snapshot size range filters",
  "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 filtering heap snapshot objects or outgoing edges by size, pass a size range string to the relevant tool. Enable memory debugging; edge filtering currently applies only the lower bound.",
    "examples": [
      "query_heapsnapshot_objects({\"filePath\":\"<snapshot.heapsnapshot>\",\"retainedSize\":\"1MB-2MB\",\"selfSize\":\"-1MiB\"})",
      "get_heapsnapshot_edges({\"filePath\":\"<snapshot.heapsnapshot>\",\"nodeId\":<node-id>,\"retainedSize\":\"1MB-\"})"
    ],
    "gotchas": [
      "Version: 1.8.0",
      "query_heapsnapshot_objects.filePath (required): Path to the heap snapshot file to read.",
      "query_heapsnapshot_objects.retainedSize: Inclusive retained-size range for target nodes; a bare size is a minimum.",
      "query_heapsnapshot_objects.selfSize: Inclusive self-size range; a bare size is a minimum.",
      "get_heapsnapshot_edges.filePath (required): Path to the heap snapshot file to read.",
      "get_heapsnapshot_edges.nodeId (required): Node ID whose outgoing edges to return.",
      "get_heapsnapshot_edges.retainedSize: Inclusive retained-size range for target nodes; only the lower bound is currently applied.",
      "size range syntax: A single size is a minimum; ranges accept forms such as 1MB-2MB, -1MB, and 1MB-. Supported units include B, KB, KiB, MB, MiB, GB, GiB, TB, and TiB. Object keys are independent filters; docs do not state they are mutually exclusive.",
      "Prerequisite: Enable memory debugging with --memoryDebugging=true.",
      "Ranges are inclusive.",
      "A single value is treated as a minimum.",
      "The documentation says only the lower bound is currently applied for `get_heapsnapshot_edges`."
    ]
  },
  "why_it_matters": "Filter heap snapshot objects and edges by retained or self size while investigating memory use.",
  "sources": [
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/releases/tag/chrome-devtools-mcp-v1.8.0",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/2589",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/61e312f59314907bca32dfeb63cb002601a76cea/docs/tool-reference.md",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/61e312f59314907bca32dfeb63cb002601a76cea/src/utils/bytes.ts"
  ],
  "rank": 0.94024,
  "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-9:gate",
    "evidence_hash": "d1c02b64abd3eac67612ba31a1ccd5e85e0544264fefbebac90e612d2e8a3a01"
  },
  "review": {
    "draft_hash": "c891e343ecff48b9f89eb32354232abb4603c0bd3edff0fe6c9e2ec178491cf1",
    "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.94 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
