add_bt_blackboard_decorator
Add a Blackboard Decorator to gate a Behavior Tree branch on a blackboard key condition. Set observer abort options to control re-evaluation and branch cancellation.
Instructions
Add a Blackboard Decorator to a Behavior Tree sequence/task node.
Ch.10: Decorators are conditions that control whether a BT branch can execute. A Blackboard Decorator checks a key's value to allow or abort execution.
Args: behavior_tree_name: Behavior Tree asset name sequence_name: Name of the Sequence/Task node to decorate blackboard_key: Blackboard key to monitor (e.g., "HasHeardSound", "bCanSeePlayer") observer_aborts: "None", "Self", "LowerPriority", "Both" node_name: Display name for the decorator node
KB: see knowledge_base/04_AI_SYSTEMS.md#overview Example: add_bt_blackboard_decorator(behavior_tree_name="ExampleName", sequence_name="ExampleName", blackboard_key="ExampleName")
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": {
"behavior_tree_name": "<behavior_tree_name>",
"sequence_name": "<sequence_name>",
"blackboard_key": "<blackboard_key>"
},
"name": "add_bt_blackboard_decorator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_name | No | ||
| sequence_name | Yes | ||
| blackboard_key | Yes | ||
| observer_aborts | No | LowerPriority | |
| behavior_tree_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |