detect_clones
Find duplicate or near-duplicate functions in a repository. Detects exact copies and copies with renamed variables to identify code clones.
Instructions
Find duplicate or near-duplicate functions in the repo.
Detects Type 1 (exact copies) and Type 2 (copies with renamed variables).
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": "detect_clones"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | optional — if given, find clones of functions in this file. | |
| min_lines | No | minimum function line count to consider (default 5). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |