script_create
Create a new GDScript file in a Godot project. Specify project path, script path, base class, and optional full script content.
Instructions
Create a new GDScript file.
Category: Script
Args: project_path: Path to the Godot project directory script_path: Path for the new script (relative to project, e.g., "scripts/player.gd") extends_type: Base class the script extends (default: "Node") content: Optional full script content. If not provided, creates a template.
Returns: Success message or error description
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": {
"project_path": "<project_path>",
"script_path": "<script_path>"
},
"name": "script_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| script_path | Yes | ||
| extends_type | No | Node | |
| content | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |