diff_snapshots
Compare directory snapshots to detect added, removed, and modified files by passing a token from a previous scan.
Instructions
Detect filesystem changes in a directory. On first call (without a previousToken), returns a snapshot token. On subsequent calls, pass the previous token to get a structured diff of added, removed, and modified files. The token is self-contained — no server-side state is stored.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "diff_snapshots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Relative path within the file server root. Empty string for root. | |
| previousToken | No | Snapshot token from a previous call. Omit for first snapshot. | |
| maxDepth | No | Maximum depth to traverse (default: 10, max: 10). |