Behavior Runtime MCP
v0.4.1In-browser ~60Hz behavior tree execution engine with reactive triggers and blackboard projection.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
load_behavior
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.
| Parameter | Type | Description |
|---|---|---|
action * | string | Behavior loading operation: load, unload, swap |
behavior_name * | string | Name of the behavior tree to load |
behavior_version | number | Version of behavior tree (defaults to latest) |
client_request_id | string | Idempotency key |
dispatch_token | object | Cryptographically signed dispatch token issued by agent-reasoning-mcp (gate_intention) |
intention | object | Optional linked intention payload matching the dispatch token |
intention_id | string | Linked agent-reasoning intention ID |
parameters | object | Initial execution parameters |
project | string | Target project slug |
session_id | string | Linked state-memory session ID |
trace_id | string | Distributed trace ID for cross-server correlation |
set_parameters
Dynamically set, inspect, or reset execution parameters for the active behavior runtime (actions: set, get, reset). Use set_parameters instead of manage_blackboard for tuning tree-level execution variables and thresholds rather than sharing cross-node data keys. Returns updated parameter map and execution ID.
| Parameter | Type | Description |
|---|---|---|
action * | string | Parameter operation: set, get, reset |
execution_id | string | Target execution instance ID |
parameters | object | Key-value parameters map to apply |
project | string | Target project slug |
get_status
Query active behavior execution status, history, or full tree node traversal state (actions: current, history, tree_state). Use get_status instead of get_metrics when inspecting active execution state and node traversal paths rather than aggregated runtime performance telemetry. Returns execution status, current node path, tick counters, duration, and error states.
| Parameter | Type | Description |
|---|---|---|
action * | string | Status query mode: current, history, tree_state |
execution_id | string | Target execution ID (or latest if omitted) |
limit | number | Max history entries |
project | string | Target project slug |
abort_behavior
Immediately halt, pause, resume, or unstick behavior execution and disengage active inputs (actions: abort, pause, resume, unstick). Use abort_behavior instead of register_trigger when manually halting or recovering execution rather than configuring automatic condition interrupts. Returns transition status, disengaged inputs, and unstick diagnostics.
| Parameter | Type | Description |
|---|---|---|
action * | string | Execution control operation: abort, pause, resume, unstick (resets stuck score and disengages inputs) |
execution_id | string | Target execution ID |
project | string | Target project slug |
reason | string | Reason for abort or pause |
trace_id | string | Distributed trace ID |
register_trigger
Configure or list reactive interrupt triggers with priority preemption and cooldown guards (actions: register, list). Use register_trigger instead of abort_behavior when defining automatic condition-based interrupts rather than manually pausing or stopping a tree. Returns registered trigger configuration, ID, or trigger list.
| Parameter | Type | Description |
|---|---|---|
action * | string | Trigger operation: register, list |
behavior_name | string | Behavior tree to activate when condition fires |
condition_params | object | Condition evaluation parameters |
condition_type | string | Condition type (e.g. hp_threshold, enemy_proximity) |
cooldown_ms | number | Minimum cooldown interval between fires |
name | string | Trigger name |
priority | number | Preemption priority |
project | string | Target project slug |
trigger_id | string | Trigger ID |
replay_recording
Capture or list deterministic browser action sequences with adaptive timing (actions: capture, list). Use replay_recording instead of load_behavior when recording or inspecting fixed action sequences rather than running a dynamic behavior tree. Returns recording metadata, frame sequences, or list of stored recordings.
| Parameter | Type | Description |
|---|---|---|
action * | string | Recording operation: capture, list |
execution_id | string | Target execution ID |
frames | array | Captured frame sequence |
name | string | Recording name |
project | string | Target project slug |
recording_id | string | Recording ID |
get_metrics
Retrieve runtime execution telemetry, tick durations, stuck events, category statistics, and 60Hz action outcome spool entries (actions: current, history, aggregate, compare, spool, drain_spool). Use get_metrics instead of get_status when evaluating tick performance, reading spooled action outcomes, or inspecting aggregated statistics rather than active node traversal. Returns telemetry metrics, duration percentiles, stuck event counts, spooled outcome records, or drained entry counts.
| Parameter | Type | Description |
|---|---|---|
action * | string | Metrics query mode: current, history, aggregate, compare, spool, drain_spool |
behavior_name | string | Filter metrics by behavior tree name |
execution_id | string | Filter metrics by execution ID |
limit | number | Max records |
project | string | Target project slug |
trace_id | string | Distributed trace ID |
unsynced_only | boolean | Filter only unsynced spool entries (action: spool) |
manage_behaviors
Manage immutable JSON behavior tree definitions with SHA-256 hash verification (actions: register, list, get, synthesize). Use manage_behaviors instead of load_behavior when defining, versioning, or synthesizing behavior tree structures rather than executing them. Returns tree definition, version metadata, SHA-256 content hash, or synthesis DAG.
| Parameter | Type | Description |
|---|---|---|
action * | string | Behavior definition management operation: register, list, get, synthesize |
client_request_id | string | Idempotency key |
description | string | Tree description |
name | string | Behavior tree name |
project | string | Target project slug |
steps | array | Steps or actions to synthesize into a behavior tree |
strategy | string | Root composition strategy for synthesize action (default: sequence) |
tree | object | Behavior tree JSON object |
tree_json | string | Raw behavior tree JSON string |
version | number | Tree version |
manage_blackboard
Read, write, delete, lease, list, or ingest structured state slices into shared behavior tree blackboard state (actions: get, set, delete, lease, list, ingest_slice). Use manage_blackboard instead of set_parameters when coordinating state across behavior nodes, projecting perception/spatial slices with staleness protection, or acquiring agent mutex leases. Returns blackboard value, lease acquisition status, key listings, or slice ingestion summary with expiry metadata.
| Parameter | Type | Description |
|---|---|---|
action * | string | Blackboard operation: get, set, delete, lease, list, ingest_slice |
agent_id | string | Agent identifier for lease actions |
duration_seconds | number | Lease duration in seconds |
execution_id | string | Target execution ID |
key | string | Blackboard variable key |
mode | string | Lease action mode: acquire or release (default: acquire) |
payload | object | Key-value dictionary of slice data to project into blackboard (action: ingest_slice) |
project | string | Target project slug |
slice_type | string | Slice category for ingest_slice (default: spatial) |
ttl_ms | number | Time-to-live before slice expires and is marked stale (default: 5000ms) |
value | Blackboard variable value |
manage_runtime_db
Database maintenance, diagnostics, SHA-256 Merkle audit verification, and snapshot management (actions: stats, audit, doctor, snapshot, diff, restore). Use manage_runtime_db instead of get_metrics when auditing SQLite integrity and Merkle proofs or restoring database snapshots. Returns maintenance diagnostics, Merkle audit trees, snapshot metadata, or diff reports.
| Parameter | Type | Description |
|---|---|---|
action * | string | Database maintenance operation: stats, audit, doctor, snapshot, diff, restore |
description | string | Snapshot description |
name | string | Snapshot name |
project | string | Target project slug |