create_resource
Create Godot .tres or .res resource files with typed properties and dry-run preview, avoiding overwrites; the parent directory must already exist.
Instructions
Create a built-in Resource as .tres/.res without overwriting existing files. Parent directory must exist. Supports typed properties and dryRun.
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>",
"className": "<className>"
},
"name": "create_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | ||
| className | Yes | ||
| properties | No | ||
| projectPath | Yes | ||
| resourcePath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| saved | Yes | ||
| className | Yes | ||
| truncated | No | ||
| properties | No | ||
| sourceHash | Yes | ||
| resourcePath | Yes |