load_behavior
Load, unload, or hot-swap a behavior tree instance in the browser runtime. Use for executing active behavior trees at runtime, not for registering or inspecting definitions.
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.
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": {
"action": "<action>",
"behavior_name": "<behavior_name>"
},
"name": "load_behavior"
}
}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 | |
| intention | No | Optional linked intention payload matching the dispatch token | |
| 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 | |
| dispatch_token | No | Cryptographically signed dispatch token issued by agent-reasoning-mcp (gate_intention) | |
| behavior_version | No | Version of behavior tree (defaults to latest) | |
| client_request_id | No | Idempotency key |