add_sm_state
Add a state to a state machine, binding a timeline that plays while active; the first state becomes the initial state automatically.
Instructions
Add a state to a state machine. Each state plays one timeline while active. The first state added becomes the initial state automatically.
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": {
"smId": "<smId>",
"id": "<id>",
"name": "<name>",
"timelineId": "<timelineId>"
},
"name": "add_sm_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique state id e.g. "idle" | |
| name | Yes | Display name | |
| smId | Yes | State machine id | |
| speed | No | Playback rate multiplier (default 1) | |
| requestId | No | ||
| sessionId | No | ||
| timelineId | Yes | Timeline that plays while this state is active | |
| expectedRevision | No |