Diff inventories
diff_inventoriesCompare two saved JSON test inventories to report added, removed, renamed, moved, and changed tests, dependencies, states, tags, and metadata without running tests or modifying files.
Instructions
Compares two complete saved JSON scans inside the project, without running tests or changing files. Reports additions, removals, renames, moves, code and dependency changes, states, tags and other metadata. Uses ids first, then unique body hashes and file, suite or dependency context; ambiguous matches remain added and removed. Use the same framework, root, patterns, filters and expandCases for both saved scans. Hash comparisons and rename matching are disabled across tool versions. Follow nextCursor for more changes. For Playwright, Vitest, Jest, Mocha, Jasmine, Cypress, WebdriverIO, node:test and Bun inventories. Example: {"before":"inventories/base.json","after":"inventories/head.json"}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"before": "<before>",
"after": "<after>"
},
"name": "diff_inventories"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | The new complete JSON inventory, relative to the project root; at most 128 MiB. | |
| limit | No | The most items to return. | |
| before | Yes | The old complete JSON inventory, relative to the project root; at most 128 MiB. | |
| cursor | No | nextCursor from the previous answer, for the next page. Keep the other arguments the same. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | Yes | ||
| tool | Yes | ||
| total | Yes | All matching items, on every page. | |
| changes | Yes | ||
| summary | Yes | Category counts overlap; changed counts matched tests, while unchanged counts matches with no changes. | |
| warnings | Yes | ||
| framework | Yes | ||
| nextCursor | Yes | ||
| schemaVersion | Yes | ||
| afterToolVersion | Yes | ||
| hashesComparable | Yes | ||
| beforeToolVersion | Yes |