remove_state
Removes a state from a UStateTree by name, optionally deleting its descendant states recursively.
Instructions
Remove a state from the tree by name. Idempotent: removing a non-existent state returns removed:false with a note.
Returns: { tree_path, state_name, removed, with_descendants, remaining_top_level, note }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the UStateTree. | |
| state_name | Yes | Name of the state to remove. | |
| with_descendants | No | When true (default), also removes all child states recursively. |