Scan the project again
check_current_directoryRescan configured paths after creating, editing, or deleting files to return updated clone counts and duplications, so other tools answer from current content.
Instructions
Scan the paths the server was started with again and return the fresh clone list and counts. Use it after creating, editing or deleting files, so that the other tools answer from current content. Returns {files, kinds, clones, returned, duplicatedLines, percentage, byKind, duplications[]} with the duplications of get_file_clones, biggest first. Reads the files only, and replaces the previous scan; it can take a few seconds on a large project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | The kinds of clone to look for: exact (type1), renamed (type2), similar (type3; 'gap' or 'ast' for one of its two mechanisms) and semantic (type4). Without it: exact, what jscpd reports with this server's options. Renamed and similar clones may need one scan more, and semantic ones run an embedding model, which takes a while the first time. | |
| limit | No | Maximum number of clones in the response. 'clones' always carries the full count, so a small limit still tells you how much was found. |