Hunt for vulnerability variants
vulnerability_variant_huntSearch a source tree for literal or regex pattern matches to locate candidate variants of a known vulnerability and return matching file and line locations.
Instructions
Search a source tree for literal (or optional regex) occurrences of a pattern to find candidate variants of a known vulnerability. Returns matching file/line locations.
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": {
"pattern": "<pattern>"
},
"name": "vulnerability_variant_hunt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. | |
| pattern | Yes | Literal string or regex to hunt for. | |
| patternType | No | Match mode. Defaults to literal. | |
| directoryPath | No | Directory to search. | . |