level

A level’s layout (.arl) and its rooms (.rml): each room’s number, bounds, place and the rooms seen from it; the models the rooms place, each in the level’s space (place, turn, scale, its lightmaps’ atlases), paged, with model to keep those whose name has a word, room one room’s, and materials each model’s material objects by part (from its .mmh); and the rooms’ lights counted, listed with lights: lamps (colour, radius, flicker, affect domain: 2 in a room’s _ll layout, 1 in its _lc), ambient lights and light probes, each in the level’s space. A level’s name is an area’s layout, “lak303d”.

Read-only: it writes nothing.

Arguments

Name Type Required What
name string yes The level, “lak303d” (its .arl).
model string   Only the placed models whose name has this word: fxe, lamp.
room integer   Only the models and lights of this room’s number.
materials boolean   Each placed model’s material objects by part, from its hierarchy. Default false.
lights boolean   List the lamps, ambient lights and probes, not only count them. Default false.
limit integer (≥ 1, ≤ 2000)   The most to return. Default 100.
offset integer (≥ 0)   How many to skip first, to page through a long answer. Default 0.

Call it as level over MCP, or from a shell as ghilana.exe --call level '<arguments as JSON>'.