get_scene_hierarchy_flat
Get a flat list of all GameObjects in a Unity scene, including name and layer, by specifying the scene path. Inspects scene hierarchy without the Unity Editor.
Instructions
Get a flat list of all GameObjects in a scene (name and layer).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scene_path": "<scene_path>"
},
"name": "get_scene_hierarchy_flat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | e.g. Assets/Scenes/Main.unity |