Context for a set of changed files
snapshot_diff_contextReturns each changed file's head window and the files that import it within a token budget, so reviewers can see missed dependents.
Instructions
Given the paths a change touched, return each one head window plus the files that import it, within a token budget. The dependents are what a reviewer usually misses. Read-only.
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": {
"paths": "<paths>"
},
"name": "snapshot_diff_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| root | No | Repository root. Defaults to the directory this server was started in. | |
| paths | Yes | Changed paths, as the manifest names them. | |
| outDir | No | Snapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir. | |
| maxTokens | No | Budget for the block (default 15000). | |
| linesPerFile | No | Head lines per changed file (default 80). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changed | No | ||
| missing | No | ||
| dependents | No | ||
| usedTokens | No | ||
| budgetTokens | No |