fix_code
Analyze vulnerable code and receive fix suggestions with before/after patches and structured edit instructions. Supports multiple languages including JavaScript, TypeScript, Python, Go.
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 | |
| format | No | Output format: json (for agent auto-fix) or markdown (human review) | json |
| language | Yes | Programming language of the code | |
| framework | No | Framework context (e.g. express, nextjs, fastapi, react, django) |