Interactively drive a state machine
riv_play_state_machineRun a .riv state machine step by step to set or fire inputs, advance time, observe state transitions, and optionally capture frames, returning a transition report.
Instructions
Run a .riv state machine step by step: set/fire inputs, advance time, observe state transitions, and optionally capture frames. Returns a transition report.
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": {
"path": "<path>",
"steps": "<steps>"
},
"name": "riv_play_state_machine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .riv file | |
| steps | Yes | Sequence of interaction steps | |
| width | No | Output width in px (default 480) | |
| artboard | No | Artboard name (default: first artboard) | |
| background | No | CSS background color (default: transparent) | |
| stateMachine | No | State machine name (default: first) |