bricks_get_element_tree
Retrieve a hierarchical tree of page elements to understand page structure and element nesting.
Instructions
Get a hierarchical tree representation of page elements (nested, not flat array). Useful for understanding page structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site key for multi-site support. Available: main. Defaults to "main". | |
| post_id | Yes | The page/post ID | |
| post_type | No | Post type slug. Use "pages" for pages, "posts" for posts, or any registered CPT slug (e.g., "product", "portfolio"). Defaults to "pages". |