Suggest fix for Rego diagnostics
rego_suggest_fixConverts Rego compile errors and Regal lint findings into actionable fix suggestions, one per diagnostic.
Instructions
Map common Rego compile errors and Regal lint findings to fix suggestions. Pass errors from rego_check or violations from rego_lint unchanged. Returns one suggestion per diagnostic; confidence is high for well-known patterns, medium where the answer is the rule's documentation (docs), low for everything else.
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": {
"diagnostics": "<diagnostics>"
},
"name": "rego_suggest_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diagnostics | Yes | Diagnostics as rego_check or rego_lint return them: `errors` or `violations`, unchanged. |