remediate_code
Fix React Native code issues automatically by applying expert-level solutions. Specify issues or auto-detect, choose remediation levels, preserve formatting, and add explanatory comments for clarity.
Instructions
Automatically fix React Native code issues with expert-level solutions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
add_comments | No | Whether to add explanatory comments to fixes | |
code | Yes | React Native code to remediate | |
issues | No | Specific issues to fix (if not provided, auto-detects all) | |
preserve_formatting | No | Whether to preserve original code formatting | |
remediation_level | No | Level of remediation to apply |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"add_comments": {
"description": "Whether to add explanatory comments to fixes",
"type": "boolean"
},
"code": {
"description": "React Native code to remediate",
"type": "string"
},
"issues": {
"description": "Specific issues to fix (if not provided, auto-detects all)",
"items": {
"type": "string"
},
"type": "array"
},
"preserve_formatting": {
"description": "Whether to preserve original code formatting",
"type": "boolean"
},
"remediation_level": {
"description": "Level of remediation to apply",
"enum": [
"basic",
"comprehensive",
"expert"
],
"type": "string"
}
},
"required": [
"code"
],
"type": "object"
}