Browse hierarchy
treeList a Roblox Studio instance hierarchy under a path breadth-first to a set depth, returning flat paths to orient in unfamiliar places and inspect 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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "tree"
}
}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 | concise: compact identity. standard: selected facts. full: all readable properties for inspect; tree/find use the same columns as standard. | standard |
| player | No | client only: player name; required with multiple players. | |
| target | No | client: read the actual player's playtest VM. Use the playtest server studioId. | studio |
| handles | No | Include bounded session handles usable in place of paths. Survive rename/reparent; refuse expired references. | |
| 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). |