add_autoload
Registers a script as an autoload singleton in Godot by providing a name and path, making it globally accessible.
Instructions
Add an autoload entry.
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": {
"name": "<name>",
"path": "<path>"
},
"name": "add_autoload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Autoload singleton name | |
| path | Yes | Script path (e.g. "res://globals.gd") |