validate_code
Validate UdonSharp C# code after writing or editing; on failure, get explanations and fix issues so code passes validation before shipping.
Instructions
WHEN: after writing or editing any UdonSharp script (mandatory). HOW: pass full code. If issues: call explain_validation for each unique ruleId, fix, then re-run validate_code until valid. Never ship code that failed validation.
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>"
},
"name": "validate_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Full UdonSharp C# to validate AFTER writing/editing. On failure: explain_validation → fix → re-validate. | |
| sdkVersion | No |