add_autoload
Configure autoload singletons in Godot projects to automatically instantiate scripts or scenes when the project starts.
Instructions
Add or update an autoload (singleton) in the project settings. The script will be instantiated automatically when the project starts.
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>",
"name": "<name>",
"scriptPath": "<scriptPath>"
},
"name": "add_autoload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Absolute path to the project directory | |
| name | Yes | Autoload node name (valid identifier, e.g. "GameManager") | |
| scriptPath | Yes | Script or scene path (res:// or relative) | |
| enabled | No | Whether the autoload is active (default: true) |