{
  "parameters": {
    "type": "object",
    "required": [
      "fields"
    ],
    "properties": {
      "fields": {
        "type": "array",
        "description": "Fields to repair.",
        "items": {
          "type": "object",
          "properties": {
            "field": {
              "type": "string",
              "description": "Field name to repair."
            },
            "description": {
              "type": "string",
              "description": "What makes the field invalid and how it should be corrected."
            },
            "allowedValues": {
              "type": "array",
              "description": "Optional allowed value list.",
              "items": {
                "type": "string"
              }
            }
          }
        }
      },
      "preserveOriginal": {
        "type": "boolean",
        "description": "When true, keep original fields and write repaired values into suffixed fields.",
        "default": true
      },
      "repairedSuffix": {
        "type": "string",
        "description": "Suffix appended when preserveOriginal is true.",
        "default": "Repaired"
      },
      "instructions": {
        "type": "string",
        "description": "Optional domain-specific repair guidance.",
        "multiline": true
      },
      "confidenceField": {
        "type": "string",
        "description": "Field that stores repair confidence for each row.",
        "default": "repairConfidence"
      },
      "rationaleField": {
        "type": "string",
        "description": "Field that stores repair rationale for each row.",
        "default": "repairRationale"
      }
    }
  },
  "inputs": [
    {
      "key": "in",
      "label": "Input",
      "required": true
    }
  ],
  "outputs": [
    {
      "key": "out",
      "label": "Output",
      "required": true
    }
  ],
  "lineage": {
    "mode": "row_preserving"
  },
  "deterministic": false,
  "runtimeSupported": true
}
