create_resource
Creates a Godot .tres resource file headlessly, letting you define the resource type, save path, and optional properties for project assets.
Instructions
Create a .tres resource file (headless)
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>",
"resourceType": "<resourceType>",
"resourcePath": "<resourcePath>"
},
"name": "create_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| properties | No | Optional properties to set on the resource | |
| projectPath | Yes | Godot project path | |
| resourcePath | Yes | Where to save the .tres file (relative to project) | |
| resourceType | Yes | Godot class name (e.g., "StandardMaterial3D", "Theme", "Environment") |