add_statetree_global_task
Add a global task to a StateTree asset in Unreal Engine by providing the task class and optional properties.
Instructions
Add a global task to the StateTree.
Args: asset_path: Content path to the StateTree asset task_class: Task struct name 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_global_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_path | Yes | ||
| properties | No | ||
| task_class | Yes | ||
| instance_properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |