Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nnaridz/RbxGenie/llms.txt
Use this file to discover all available pages before exploring further.
Description
Returns a hierarchical tree structure of instances starting from a specified path (or the rootgame object). This is useful for exploring the structure of your game and understanding parent-child relationships.
The tree can be controlled with depth and node limits to avoid overwhelming results.
HTTP Endpoint
Request Parameters
The starting path for the tree. Defaults to
game (root). Examples: "Workspace", "ReplicatedStorage.Items"Maximum depth to traverse (capped at 3). Higher depth shows more nested levels.
Maximum number of nodes to return (prevents huge results)
Response Format
Name of the root instance
Class name of the root instance
Number of immediate children
Array of child instances (recursive structure with same fields)
True if the result was truncated due to node limit
Additional information about truncation
Error message if path resolution failed
Example
Implementation Details
FromInstanceTools.lua:75-91:
- Uses
PathResolver.resolve()to find the starting instance - Recursively builds tree structure with
instanceToTable() - Enforces depth limit (max 3)
- Enforces node limit to prevent overwhelming results
- Returns truncation notice when limits are reached