fix_code
Analyze code for security vulnerabilities and generate patches with before/after comparisons. Returns structured fix data including severity levels and line numbers for automated remediation.
Instructions
Analyze code for security vulnerabilities and return fix suggestions with concrete patches. The AI agent can apply these patches to automatically fix issues. Returns structured fix data including before/after code, severity, and line numbers.
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 |