fix_code
Provides structured fix suggestions for vulnerable code with before/after patches, severity, and line numbers. Use verify_fix to confirm resolution.
Instructions
Pass vulnerable code as a string and get fix suggestions with before/after patches. Returns structured edit instructions (line numbers, severity, confidence). Use verify_fix afterwards to confirm the fix resolved the issue. Example: fix_code({code: '...', language: 'typescript'})
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code snippet to analyze and fix | |
| language | Yes | Programming language of the code | |
| framework | No | Framework context (e.g. express, nextjs, fastapi, react, django) | |
| format | No | Output format: json (for agent auto-fix) or markdown (human review) | json |