run_scenario
Drive device behavior through scripted scenarios by emitting data frames and asserting control states.
Instructions
Drive the device through a scripted scenario and assert control states — UI testing over the mesh, no XCUITest.
Each step: {"emit": {...frame...}, "event": "broadcast", "wait": 0.5,
"expect": {"control_id": expected_value, ...}}.
emit pushes a data frame; after wait seconds the named controls are read back
and compared to expect.
Args: steps_json: JSON array of step objects.
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": {
"steps_json": "<steps_json>"
},
"name": "run_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| steps_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |