create_state_machine
Build a state machine that switches between pre-built timelines using events and guards for interactive multi-state animation flows.
Instructions
Create a state machine that switches between timelines based on events/guards. Create the per-state timelines FIRST, then this, then add_sm_state for each state. Use for interactive / multi-state scenarios (hover→active, idle→walk→run, 4 seasons…).
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": {
"id": "<id>"
},
"name": "create_state_machine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique state machine id e.g. "player_sm" | |
| name | No | Display name shown in the SM editor | |
| requestId | No | ||
| sessionId | No | ||
| expectedRevision | No |