state_machine_sm_trigger
Transition a state machine to a specified state, returning confirmation or error if the transition is not allowed. Manage state flows reliably.
Instructions
[state_machine] Attempt to transition to to_state. Returns {ok: true, from, to} or {ok: false, error} if not allowed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| to_state | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |