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.
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). |