add_sm_transition
Connects two states in a Chorono state machine with a transition fired by an event, a guard condition, or both; use from="*" to apply it from any state.
Instructions
Connect two states with a transition. Fires on event, when guard holds, or both. Use from="*" for a transition that applies from any state.
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>",
"from": "<from>",
"to": "<to>"
},
"name": "add_sm_transition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Optional transition id (auto-generated if omitted) | |
| to | Yes | Destination state id | |
| from | Yes | Source state id, or "*" for any state | |
| smId | Yes | State machine id | |
| event | No | Event name that fires this transition | |
| blendMs | No | Cross-fade duration in ms (0 = hard cut) | |
| guardOp | No | Guard comparison operator | |
| priority | No | Higher wins when multiple are eligible | |
| requestId | No | ||
| sessionId | No | ||
| guardParam | No | Parameter name for a guard condition | |
| guardValue | No | Guard comparison value (number/bool/string) | |
| expectedRevision | No |