{
  "slug": "compare-heapsnapshots-paginates-summary-diffs-9026fe57625c",
  "title": "compare_heapsnapshots paginates summary diffs",
  "tools": [
    "chrome-devtools-mcp"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-15T14:01:41.000Z",
  "announced_at": "2026-10-15T14:01:41.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When reviewing a large comparison, call `compare_heapsnapshots` with the two snapshot paths and `pageIdx`/`pageSize`; the summary diff returns the requested class page with indexes and an overall class total.",
    "examples": [
      "compare_heapsnapshots({\"baseFilePath\":\"<earlier-snapshot.heapsnapshot>\",\"currentFilePath\":\"<later-snapshot.heapsnapshot>\",\"pageIdx\":0,\"pageSize\":20})"
    ],
    "gotchas": [
      "Version: 1.11.0",
      "baseFilePath (required): Path to the earlier, base `.heapsnapshot` file.",
      "currentFilePath (required): Path to the later, current `.heapsnapshot` file.",
      "pageIdx: Page index for pagination.",
      "pageSize: Page size for pagination.",
      "classIndex: 0-based index of a summary class; when provided, returns that class's detailed diff.",
      "Prerequisite: Requires `--memoryDebugging=true`.",
      "Pagination applies to the summary diff; the detailed case is deferred to a follow-up."
    ]
  },
  "why_it_matters": "When reviewing a large heap snapshot comparison, retrieve the summary diff in pages and retain the overall class total.",
  "before": "Previously, the method returned `HeapSnapshotClassDiff[]`; the release note says the paginated implementation returns classes with an index and an overall total in a `HeapSnapshotDiff` object.",
  "sources": [
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/releases/tag/chrome-devtools-mcp-v1.11.0",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/pull/3140",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/daebfd1f6fe8fb276c31b02c85ccb143d3d1e9e8/docs/tool-reference.md",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/daebfd1f6fe8fb276b02c85ccb143d3d1e9e8/docs/tool-reference.md",
    "https://github.com/ChromeDevTools/chrome-devtools-mcp/commit/daebfd1f6fe8fb276c31b02c85ccb143d3d1e9e8"
  ],
  "rank": 0.95019,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "daily-20261015-20",
    "verdict_id": "daily-20261015-20:daily-20261015-20-0fad988eee015972-4:gate",
    "evidence_hash": "f4ab448bcf93bfbc244c11495c3319bca957c64c1a6b2148d3c22048468b33a0"
  },
  "review": {
    "draft_hash": "6dca984a93b99d4d8764c21ecf41ed18dea11eab10ba21bbacd1355fe94c4d08",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-15T14:01:41.000Z",
    "decision": "daily-20261015-20:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
