diff
Compare repository snapshots or live code to reveal added, removed, or changed files and symbols, helping catch structural drift in enrolled repos.
Instructions
Structural drift for an enrolled repo: files and symbols added, removed, or whose body hash changed. With a+b (snapshot ids) diffs those snapshots; with since=label diffs that snapshot vs live code; default diffs the latest snapshot vs live code. Errors if the repo is not enrolled.
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": {
"repo": "<repo>"
},
"name": "diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | snapshot id A (with b) | |
| b | No | snapshot id B (with a) | |
| repo | Yes | name of an enrolled repo | |
| since | No | diff latest snapshot with this label vs live code | |
| session | No | with `since`: pin the reference snapshot to this session id |