add_bt_node
Add a single node to an existing Behavior Tree graph for incremental edits, supporting custom node types and properties.
Instructions
Add a single node to an existing Behavior Tree graph.
Use this for incremental edits — add one node at a time after the initial tree is built with build_behavior_tree.
Node type strings (case-insensitive): "Selector", "Sequence", "Wait", "MoveTo" or a full Blueprint class name/path for custom tasks.
Args: behavior_tree_name: Name of the existing BT asset node_type: Node type string (see above) parent_node_index: 0-based index in the graph Nodes array (skip root). -1 = attach directly to root. x: Graph X position (0 = auto) y: Graph Y position (0 = auto) properties: Dict of property name → string value for the node instance e.g. {"WaitTime": "3.0", "AcceptableRadius": "100.0"} decorators: List of {"type": "..."} objects for decorator sub-nodes services: List of {"type": "..."} objects for service sub-nodes
Returns: Dict with 'success', 'node_type', 'node_index'
KB: see knowledge_base/04_AI_SYSTEMS.md#overview Example: add_bt_node(behavior_tree_name="ExampleName", node_type="Example")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| services | No | ||
| node_type | Yes | ||
| decorators | No | ||
| properties | No | ||
| parent_node_index | No | ||
| behavior_tree_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |