list_states
Walk the state hierarchy of a UStateTree to return a flat list with parent/child/sibling info and child counts.
Instructions
Walk the state hierarchy of a UStateTree, returning a flat list with parent/child/sibling info plus a recursive child_count.
Returns: { tree_path, count, states: [{ name, type, completion, has_children, child_count, depth, parent }] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the UStateTree. | |
| root_state | Yes | Optional. If set, walk from this state as root (top-level SubTrees are skipped). |