create_autoload
Register a script as an autoload or singleton by adding it to the project.godot configuration.
Instructions
Register a script as an autoload/singleton in project.godot
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>",
"autoloadPath": "<autoloadPath>"
},
"name": "create_autoload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | ||
| autoloadName | Yes | Name of the autoload (e.g. GameManager) | |
| autoloadPath | Yes | Path to the script (e.g. res://scripts/game_manager.gd) |