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.
Input Schema
TableJSON 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: {},