find_duplicates
Find groups of scripts with exactly identical source code, ordered by group size, to locate copy-pasted code that should be moved into a shared ModuleScript. Read-only; near-duplicates are ignored.
Instructions
Find groups of scripts whose Source is exactly identical, biggest group first: copy-pasted code to move into one shared ModuleScript. Read-only. Only exact copies match; near-duplicates with small edits are not reported. To search for a specific snippet use grep_scripts.
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": "find_duplicates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| place | No | Target place (PlaceId or project name). Defaults to the bound/sole connected place. | |
| minLines | No | Ignore scripts shorter than this many lines, to skip trivial stubs. Default 3. |