remove_task
Delete a task at a given 0-based index from a UStateTree state to update task sequences. Handles out-of-range indexes safely.
Instructions
Remove a task (by index) from a state. Idempotent at the index-out-of-range boundary.
Returns: { tree_path, state_name, task_index, removed, remaining, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the UStateTree. | |
| state_name | Yes | Name of the state. | |
| task_index | Yes | 0-based index into the state's Tasks array. |