Re-scan the project
check_current_directoryRe-scan the server's configured paths to refresh the clone list and counts, ensuring subsequent duplication queries reflect the current file content.
Instructions
Re-scan the paths the server was started with and return the fresh clone list and counts. Use it after creating, editing or deleting files, so that check_duplication, get_file_clones and get_statistics answer from current content. Returns {files, clones, returned, duplications[]} with the same duplication shape as get_file_clones, biggest first. Reads the filesystem only; it never writes. The scan is synchronous and can take a few seconds on large projects; results replace the previous scan entirely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of clones to include in the response. 'clones' always carries the untruncated total, so a small limit still tells you how much was found. |