create_resource
Create a .tres resource file with typed properties for Godot, specifying resource type, properties, and optional GDScript script.
Instructions
Create a .tres resource file with typed properties
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>",
"resourcePath": "<resourcePath>",
"resourceType": "<resourceType>"
},
"name": "create_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| properties | No | Properties to set on the resource | |
| scriptPath | No | Optional: Path to a GDScript that defines the resource class | |
| projectPath | Yes | Path to the Godot project directory | |
| resourcePath | Yes | Path where the .tres file will be saved (relative to project) | |
| resourceType | Yes | Type of resource (e.g., "Resource") or path to a script with class_name |