Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Command · behavior

behavior.rename

Rename a state, variable or query, keeping its identity and rewriting references.
scope edit:scenenot idempotentnon-destructive

Params

Typed as BehaviorRenameParams. Fields marked * are required.

from*

string
Existing name.
required

to*

string
New unique name.
required

restoreId

option<string>
After a plain-text rename (delete + create): the deleted node's ID, to restore.
default null

Examples

JSON (MCP ara_apply, batches)

{
  "cmd": "behavior.rename",
  "args": {
    "from": "Idle",
    "to": "Rest"
  }
}

CLI

ara do behavior.rename --args '{"from":"Idle","to":"Rest"}' --why "…"