fix_iac
Fix Infrastructure as Code security misconfigurations by suggesting or automatically applying corrections to identified vulnerabilities in IaC files.
Instructions
Fix an Infrastructure as Code security misconfiguration. Can either suggest a fix (default) or apply it automatically. Returns before/after code for review.
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": {
"file_path": "<file_path>",
"rule_id": "<rule_id>"
},
"name": "fix_iac"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Path to the IaC file containing the issue. | |
| line_number | No | Line number where the issue is located. | |
| rule_id | Yes | ID of the security rule that was violated. | |
| auto_apply | No | If true, automatically apply the fix. If false, only return the suggested fix. Defaults to false. |