create_csharp_script
Create a C# script file in a Godot .NET project with a chosen base class, namespace, method stubs, or full source code.
Instructions
Create a C# script file in a Godot .NET project
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>",
"scriptPath": "<scriptPath>"
},
"name": "create_csharp_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | Full source code (overrides template) | |
| methods | No | Method stubs (e.g. _Ready, _Process) to include | |
| baseClass | No | Godot base class to extend. Default: Node | |
| className | No | C# class name. Default: derived from the file name | |
| scriptPath | Yes | Script file path relative to project (e.g. "scripts/Player.cs") | |
| projectPath | Yes | Godot .NET project path (must contain a .csproj) | |
| namespaceName | No | Optional C# namespace |