write_vs_graph
Validate and write a Unity Visual Scripting graph to .asset and .meta files, rejecting invalid graphs before any files are created.
Instructions
Validate and write a Visual Scripting graph to the Unity project. Creates a native .asset file and Unity-compatible .meta file. Invalid graphs are rejected before any file is written.
After writing, use check_import_status to verify Unity imported it correctly.
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": {
"graphJson": "<graphJson>",
"graphName": "<graphName>"
},
"name": "write_vs_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Folder within Assets to write to (e.g., 'Scripts/VisualScripting') | |
| graphJson | Yes | The validated VS graph JSON | |
| graphName | Yes | Name for the .asset file (without extension) |