add_statetree_task
Add a task to a state in a StateTree asset, specifying the task class and optional state identifier and properties.
Instructions
Add a task to a state.
Args: asset_path: Content path to the StateTree asset task_class: Task struct name (e.g. "MassEnemyAttackTask", "MassNavMeshPathFollowTask") or full path state: State index path state_name: State name state_guid: State GUID properties: JSON object for task node properties instance_properties: JSON object for task instance data properties
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"asset_path": "<asset_path>",
"task_class": "<task_class>"
},
"name": "add_statetree_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| asset_path | Yes | ||
| properties | No | ||
| state_guid | No | ||
| state_name | No | ||
| task_class | Yes | ||
| instance_properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |