generate_fix
Generates a compliant code patch and diff from source code and UI/UX or backend critique findings to fix identified issues.
Instructions
Given source code and structured findings from critique_ui or critique_backend, generate an updated, compliant code patch and diff.
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": {
"code": "<code>",
"critic": "<critic>",
"findings": "<findings>"
},
"name": "generate_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The original code snippet. | |
| critic | Yes | The critic type that generated the findings. | |
| filePath | No | Optional file path. | |
| findings | Yes | The array of CritiqueFinding objects returned by critique_ui or critique_backend. |