get_trees
Retrieve all hierarchical tile-based trees to explore and organize interconnected research ideas, analyze gaps, and support visualization exports.
Instructions
Get all tiling trees
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/research-tree.ts:118-120 (handler)The core handler function that executes the 'get_trees' tool logic, returning an array of all TilingTree objects managed by ResearchTreeManager.getTrees(): TilingTree[] { return Array.from(this.trees.values()); }
- src/index.ts:217-220 (schema)The input schema definition for the 'get_trees' tool, specifying an empty object since no parameters are required.inputSchema: { type: "object", properties: {}, },
- src/index.ts:214-221 (registration)The tool registration entry in the TOOLS array, defining name, description, and schema for 'get_trees'.{ name: "get_trees", description: "Get all tiling trees", inputSchema: { type: "object", properties: {}, }, },
- src/index.ts:507-517 (registration)The dispatch handler in the switch statement that calls treeManager.getTrees() and formats the response for the MCP server.case "get_trees": { const result = treeManager.getTrees(); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
- src/research-tree.ts:43-51 (schema)Type definition for TilingTree, which is the return type of getTrees().export interface TilingTree { id: string; name: string; problemStatement: string; // The original problem/challenge being explored rootTileId: string; // The complete solution space createdAt: Date; updatedAt: Date; metadata: Record<string, any>; }