check_duplication
Detect exact and near-miss duplicate code blocks in a codebase, using token count and diversity thresholds to report clone groups.
Instructions
Verified T1/T2 clone blocks (ce.dedup-report schema).
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": "check_duplication"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | subpath (default: project root) | |
| min_tokens | No | report threshold (default 50) | |
| min_distinct | No | diversity floor: suppress blocks with fewer distinct tokens |