Command · behavior
behavior.transition.add
Add
on <when> -> <to> to a state.scope edit:scenenot idempotentnon-destructive
Params
Typed as BehaviorTransitionParams. Fields marked * are required.
from*
stringSource state name.
required
to*
stringTarget state name.
required
when*
stringdone, failed or a condition expression.required
Examples
JSON (MCP ara_apply, batches)
{
"cmd": "behavior.transition.add",
"args": {
"from": "Patrol",
"to": "Chase",
"when": "sees(nearest(\"player\"))"
}
}CLI
ara do behavior.transition.add --args '{"from":"Patrol","to":"Chase","when":"sees(nearest(\"player\"))"}' --why "…"