unity_ui_verify_backing_class
Validate that SerializeField fields in a C# backing class match UI bindings from the spec, ensuring correctness before generating prefab code.
Instructions
Validate that [SerializeField] fields in a C# backing class match the cs_bindings from unity_ui_resolve. Call after writing the C# class and before unity_ui_generate.
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": {
"projectPath": "<projectPath>",
"specPath": "<specPath>",
"classPath": "<classPath>"
},
"name": "unity_ui_verify_backing_class"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specPath | Yes | Path to the authored ags-ui-recipe/v1 spec JSON. | |
| classPath | Yes | Path to the C# backing class file. | |
| projectPath | Yes | Unity project root. | |
| allowNonstandardClassPath | No | Allow generated backing C# outside Assets/AGS/Scripts. Use only for an intentional project convention. |