Play a scenario on a device
apply_scenarioPlay a timed timeline of steps on one simulated Modbus device: set points, drive signals, inject or clear faults at given seconds. Use it to rehearse sequences like a pump trip and recovery.
Instructions
Play a timeline of timed steps on one device, starting now: set values, start or stop signals, inject or clear faults at given seconds. Use it to rehearse a sequence such as a pump trip followed by recovery; use set_point, set_signal or inject_fault for a single immediate change. Replaces any scenario already running on that device. Values, signals and faults set by steps stay in place after the scenario ends. Returns the scenario 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": {
"device_id": "<device_id>",
"scenario": "<scenario>"
},
"name": "apply_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenario | Yes | Timeline of steps for one device. | |
| device_id | Yes | Id of a running device, as returned by create_device, clone_device or list_devices. |