Browse hierarchy
treeLists instance hierarchy under a path as flat paths, letting you orient in unfamiliar places while hiding engine-only services.
Instructions
Lists the instance hierarchy under a path, breadth-first to a given depth. Returns a flat array of paths — flat is both cheaper and easier to act on than nested JSON, since every entry is directly usable as a path.
Use this to orient yourself in an unfamiliar place. Use find instead when you already know what you are looking for; a deep tree over a whole place wastes context on instances you will never touch.
With path omitted it lists only the containers a place is authored in — Workspace, ReplicatedStorage, ServerScriptService and friends. Roblox exposes ~120 services at the root, almost all engine internals; those are hidden and the response says how many. Pass an explicit path to look inside one of them anyway.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Dot-notation root, e.g. "Workspace.Map". Omit to list services from the root. | |
| depth | No | Levels below `path` to walk. Keep low; each level multiplies the result. | |
| limit | No | Maximum items to return (1-500). | |
| cursor | No | Opaque cursor from a previous call's `nextCursor`. Omit for the first page. | |
| detail | No | How much to return per item. 'concise' = name + class only, cheapest, use when scanning or counting. 'standard' = the properties that matter for most edits. 'full' = every readable property, expensive — use only after you have narrowed to a handful of instances. | standard |
| studioId | No | Target Studio; omit for the active one. | |
| className | No | Only include instances of this class or a subclass, e.g. "BasePart". | |
| nameContains | No | Only include instances whose name contains this text (case-insensitive). |