get_task_property
Read one property from a StateTree task node by reflection to inspect its C++ type, value, and has_value without modifying the asset.
Instructions
Read one property of a task node on a StateTree state by reflection, without changing the asset. Returns the value as JSON with its C++ type and has_value; only node struct properties are reachable, not instance data. Use get_task_info for the whole node and set_task_property to write.
Returns: { tree_path, state_name, task_index, property, type, value, has_value }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| property | Yes | Name of a property on the task node struct, e.g. "FontScale" on a debug text task; case-insensitive. | |
| tree_path | Yes | Asset path of the StateTree, e.g. "/Game/AI/ST_Guard". | |
| state_name | Yes | Name of the state that owns the task; the command fails without it. | |
| task_index | Yes | 0-based index into the state Tasks, as listed by list_tasks. |