get_actors_in_level
Lists every actor in the current UE5 level as a JSON array. Returns an error if Unreal is disconnected, so audits don't mistake an unavailable editor for an empty level.
Instructions
Get a list of all actors in the current UE5 level.
Returns a compact single-line JSON array of actor objects when the editor is connected. When Unreal is unavailable, returns a structured JSON error object instead of an empty array so audits do not mistake a disconnected bridge for an empty level. Example: [{"name": "BP_MyActor", "type": "StaticMeshActor"}, ...]
Bug #3 fix:
Returns a JSON string so FastMCP sends it verbatim as a single TextContent block (no pydantic_core indent=2 pretty-printing).
Connected success responses keep the historical top-level JSON array.
KB: see knowledge_base/10_WORLD_BUILDING.md#overview Example: get_actors_in_level()
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |