validate_vs_graph_in_unity
Validates Unity Visual Scripting Script Graph asset import and deserialization, checking graph type, elements, GUID, dependencies, and unbound value ports to prevent MissingValuePortInputException.
Instructions
Force Unity to import and deserialize a Visual Scripting Script Graph asset, then return its resolved graph type, element counts, element types, GUID, dependency hash, and required value-port integrity. By default validation fails when a ValueInput has neither a valid connection nor a persisted default because Unity Visual Scripting will throw MissingValuePortInputException if that input is evaluated. This is the authoritative import check after write_vs_graph. It uses reflection so the bridge still compiles in projects without Visual Scripting, where the tool returns a clear validation failure.
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": {
"assetPath": "<assetPath>"
},
"name": "validate_vs_graph_in_unity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assetPath | Yes | Project-relative Script Graph path under Assets (for example, Assets/Graphs/Respawn.asset) | |
| allowUnboundValueInputs | No | Report but do not fail validation for unbound value inputs (default: false) |