get_autoloads
Retrieve all autoload singletons configured in a Godot project to manage global resources and persistent game objects.
Instructions
Get all autoload singletons configured in the project.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_autoloads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/project-tools.ts:111-117 (handler)The MCP tool handler for "get_autoloads" which fetches autoloads from the index.
handler: async (_ctx) => { const autoloads = index.getAutoloads(); return makeTextResponse({ data: autoloads, metadata: { source: "index" }, }); }, - src/index/unified-index.ts:237-239 (helper)The actual implementation logic that retrieves autoloads from the autoloadIndex.
getAutoloads(): AutoloadRef[] { return this.autoloadIndex.all(); } - src/tools/project-tools.ts:107-110 (registration)The registration of the "get_autoloads" tool within the project tools collection.
{ name: "get_autoloads", description: "Get all autoload singletons configured in the project.", schema: {},