register_autoload
Registers a named singleton or plain autoload from an existing .gd, .cs, .tscn, or .scn path, checking name and path conflicts and requiring replace:true to overwrite a different entry.
Instructions
Register a named singleton or plain autoload using an existing .gd/.cs/.tscn/.scn path. Checks path and built-in name conflicts, not script/runtime compatibility. Refuses replacing a different entry unless replace:true. Supports dryRun and expectedHash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| dryRun | No | ||
| replace | No | ||
| singleton | No | ||
| projectPath | Yes | ||
| expectedHash | No | ||
| resourcePath | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| saved | Yes | ||
| stored | No | ||
| actions | No | ||
| section | No | ||
| setting | No | ||
| truncated | No | ||
| expression | No | ||
| sourceHash | Yes | ||
| configuredOnly | No |