# `PhiaUiDesign.Mcp.SnapshotLayout`
[🔗](https://github.com/charlenopires/PhiaUI/blob/v0.1.17/lib/phiaui_design/mcp/snapshot_layout.ex#L1)

Computes approximate bounding boxes from layout properties.

Since PhiaUI Design operates without a browser engine, bounding boxes are
estimated from layout direction, gap, padding, and sizing properties.
Component defaults are used for leaf nodes without explicit dimensions.

# `execute`

```elixir
@spec execute(reference(), map()) :: {:ok, [map()]}
```

Compute approximate layout bounding boxes for the scene.

## Options

- `parent_id` — scope to a subtree (nil = entire scene)
- `max_depth` — how deep to recurse (default 2)
- `problems_only` — only return nodes with detected problems (default false)
- `viewport_width` — root container width in px (default 1280)

Returns `{:ok, tree}` where tree is a list of node bbox maps.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
