find_group_members
Locate all nodes assigned to a specific group across indexed Godot scenes to manage scene trees and analyze project structure.
Instructions
Find all nodes belonging to a specific group across all indexed scenes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | Yes | Group name to search for | |
| maxResults | No | Maximum results to return |
Implementation Reference
- src/tools/scene-tools.ts:290-307 (handler)The handler function for 'find_group_members' that retrieves nodes by group name from the index and formats the response.
handler: async (ctx) => { const { group, maxResults = 50 } = ctx.args; const results = await index.findNodesByGroup(group); const truncated = results.length > maxResults; const data = results.slice(0, maxResults).map((r) => ({ name: r.node.name, type: r.node.type, nodePath: r.node.nodePath, scenePath: r.scenePath, })); return makeTextResponse({ data, truncated, totalCount: results.length, metadata: { source: "index" }, }); }, - src/tools/scene-tools.ts:279-289 (schema)Input schema validation for the 'find_group_members' tool.
schema: { group: z.string().describe("Group name to search for"), maxResults: z .number() .int() .min(1) .max(500) .optional() .default(50) .describe("Maximum results to return"), },