remediate_vulnerability
Fix memory-safety vulnerabilities in C/C++ code by applying pre-compiled secure remediation templates for specific vulnerability types.
Instructions
Provides pre-compiled secure remediation templates and code blocks to safely replace vulnerable C/C++ segments.
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": {
"vulnerabilityType": "<vulnerabilityType>"
},
"name": "remediate_vulnerability"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vulnerabilityType | Yes | The name of the vulnerability type (e.g., 'Unsafe Function (strcpy)', 'Format String Vulnerability', 'Command Injection Risk'). |