load_behavior
Load, unload, or hot-swap a behavior tree instance in the browser runtime to execute active trees, returning execution handle and runtime state.
Instructions
Load, unload, or hot-swap a behavior tree instance in the browser runtime (actions: load, unload, swap). Use load_behavior instead of manage_behaviors when executing an active behavior tree instance at runtime rather than registering or inspecting definitions.
Returns execution handle, runtime state, active node, and session/intention bindings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Behavior loading operation: load, unload, swap | |
| project | No | Target project slug | |
| trace_id | No | Distributed trace ID for cross-server correlation | |
| parameters | No | Initial execution parameters | |
| session_id | No | Linked state-memory session ID | |
| intention_id | No | Linked agent-reasoning intention ID | |
| behavior_name | Yes | Name of the behavior tree to load | |
| behavior_version | No | Version of behavior tree (defaults to latest) | |
| client_request_id | No | Idempotency key |