unity_script_create
Create a new C# script file in a Unity project by specifying the file path, source code, and class name.
Instructions
Create a new C# script file in the project with the given content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Asset path for the script (e.g. 'Assets/Scripts/PlayerController.cs') | |
| content | Yes | Full C# source code content | |
| className | No | Class name (defaults to filename without extension) | |
| port | No | Target Unity instance port for parallel-safe routing. Get this from unity_select_instance. When working with multiple Unity instances, ALWAYS include this parameter. |