add_autoload
Add or update an autoload singleton in a Godot project to automatically load scripts or scenes. Specify the project, singleton name, and script or scene path.
Instructions
Add (or update) an autoload singleton
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>",
"autoloadName": "<autoloadName>",
"path": "<path>"
},
"name": "add_autoload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the Godot project directory | |
| autoloadName | Yes | Singleton name (e.g. GameState) | |
| path | Yes | Path to the script or scene (relative to project) | |
| enabled | No | Enable the singleton (default true) |