run_app_scenario
Run a saved scenario in a VM and record the result as an app test run.
First run = hardening (resolves each element via OmniParser, slow). Later
runs replay from cache (fast) and only re-resolve steps whose UI changed.
The response reports, per step, whether it was served from cache or parsed.
Secrets (password, 2FA TOTP seed) are normally stored when the scenario is
created and pulled from the key store automatically; pass variables only to
override a value for this single run (substituted into ${VAR}/${totp:VAR},
never persisted).
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": {
"scenario_id": "<scenario_id>"
},
"name": "run_app_scenario"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | MCP API key | |
| vm_name | No | Tester/desktop VM to run in (of-tester-* or of-desktop-*). Omit to auto-lease one from the app's tester VM pool (queues if all the app's VMs are busy) and release it when the run finishes. | |
| variables | No | Optional run-time overrides for ${VAR}/${totp:VAR} in the scenario's steps. Secrets are normally saved when the scenario is created (create_app_scenario.secrets) and pulled from your key store automatically; use this only to override a value for a single run. Merged over the stored values and NOT persisted. e.g. {"PASSWORD":"hunter2","OTP_SECRET":"JBSWY3DPEHPK3PXP"} | |
| scenario_id | Yes | Scenario id to run | |
| on_behalf_of | No | Run as THIS OpenFactory user (id or email) instead of the caller, so the run uses their tester-VM pool and stored secrets (e.g. a staging protection-bypass token + app login). Only honored for the system agent or a super-admin. | |
| record_video | No | Record a video of the run (per-step seek markers added; watchable live in the VNC console). | |
| public_report | No | Whether the standalone HTML report URL for this scenario run should be public. Default false keeps report artifacts private. | |
| session_token | No | Session token |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||