add_statetree_evaluator
Add a global evaluator to a StateTree asset by specifying the evaluator class and optional properties for node and instance data.
Instructions
Add a global evaluator to the StateTree.
Args: asset_path: Content path to the StateTree asset evaluator_class: Evaluator struct name (e.g. "MassEnemyHasTargetEvaluator") properties: JSON object for evaluator node properties instance_properties: JSON object for evaluator 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>",
"evaluator_class": "<evaluator_class>"
},
"name": "add_statetree_evaluator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_path | Yes | ||
| properties | No | ||
| evaluator_class | Yes | ||
| instance_properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |