get_duplicate_code_regions
Page through the duplicated code regions of one DUPLICATE_JS_CODE or DUPLICATE_CSS_CODE alert, each with the two source locations, the measured shared bytes, and the code snippet. Use this to read the actual duplicated code: the crawl-wide duplicate-code report carries no snippets at all, because it returns every finding in the crawl at once.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"alertId": "<alertId>"
},
"name": "get_duplicate_code_regions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Zero-based page index (default 0). | |
| size | No | Regions per page (default 10, max 50). | |
| alertId | Yes | Path parameter alertId. |