tree
View a compact Roblox Studio instance hierarchy with class, name, tag, and path filters, listing matching instances and their disambiguated paths for quick inspection.
Instructions
Compact view of the instance hierarchy (Name [Class] (+N hidden children)). With class/name/tag filters, lists matching instances with full ~N-disambiguated paths. Faster and terser than search_game_tree.
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 |
|---|---|---|---|
| max | No | Max lines. Default 300. | |
| tag | No | Only instances with this CollectionService tag. | |
| name | No | Only instances whose name contains this (case-insensitive). | |
| path | No | Start instance, e.g. Workspace.Map (default: whole game). | |
| class | No | Only instances where IsA(class), e.g. BasePart, BaseScript, GuiObject. | |
| depth | No | Levels to expand. Default 2 (10 with filters). | |
| studio | No | Optional. Target Studio (name substring, place id or id). Only needed when several Studios are open and none was selected. | |
| context | No | Datamodel to run in. Default: edit when not playing, otherwise server. | |
| script_info | No | Annotate scripts with RunContext / Disabled state. Default false. |