Run a test
run_testStart a run of one test. Runs take minutes: poll get_run until final is true. watchUrl opens the run live without signing in. App tests run the newest build of their app unless buildId names another (see list_builds). watchUrl is a view-only link anyone can open (no sign-in) to watch the run live and read its result for a while after it ends; give it to the person waiting for the result. Absent when the workspace turned watch links off. REST: send an Idempotency-Key header so a retried request does not start a second run.
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": {
"testId": "<testId>"
},
"name": "run_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Websites: start at this address instead of the test's saved one — a preview or staging deploy of the same site. The run then explores (cold). | |
| mode | No | auto (default) replays the learned path when it is fresh, else explores; cold always explores; warm only replays. | |
| device | No | App tests: this run on a phone or tablet, whatever the test is set to (the test does not change; see list_devices) | |
| testId | Yes | Test id (t_…) | |
| buildId | No | Apps: run this build (ab_…) | |
| osVersion | No | App tests: this run on this OS version, for example latest, iOS 26 or Android 14 (the test does not change; see list_devices) | |
| orientation | No | App tests: this run started in this orientation, default, portrait or landscape (the test does not change) |