easyar_write_csharp_file
Creates or replaces a C# script file in a Unity project. The file must be inside the project and end with .cs.
Instructions
Create or replace a C# script inside a Unity project. The file must stay inside the project and end with .cs.
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>",
"relativePath": "<relativePath>",
"contents": "<contents>"
},
"name": "easyar_write_csharp_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Unity project path. | |
| relativePath | Yes | Relative file path inside the Unity project, for example Assets/Scripts/Foo.cs. | |
| contents | Yes | Complete C# file contents. |