playtest
Runs a one-call app smoke test: installs or resets, launches, handles popups, executes scripted steps with screenshots, backgrounds and reopens, then scans logs for crashes and exceptions.
Instructions
Run a standard smoke test of an app in one call and return a report with screenshots: (optionally install and) reset it to first-launch state, launch it, press through system popups, run your steps, send it to the background and bring it back, then scan its log for exceptions and crashes. Steps are other tools' calls, for example {"tool":"tap","x":0.5,"y":0.87} or {"tool":"wait","ms":3000}; a screenshot is taken after each.
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": "<device>",
"app": "<app>"
},
"name": "playtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | App id: Android package, Apple bundle identifier; on "mac" the bundle identifier or app name (required there) | |
| path | No | A build to install first (.apk, or .app built for the simulator) | |
| fresh | No | Reset the app to first-launch state before launching, which deletes its data on that device. Default true | |
| steps | No | Actions after launch, each {"tool": "tap" | "swipe" | "key" | "gamepad" | "pinch" | "type_text" | "tap_element" | "wait", ...that tool's arguments}. device and app are filled in | |
| device | Yes | Device id (or exact name) from the devices tool | |
| popups | No | Labels to press on system popups after launch, tried in order. Default: Allow, While using the app, OK, Continue, Accept | |
| maxSize | No | Long edge of the screenshots in the report. Default 800 | |
| logFilter | No | What counts as a problem in the app's log. Default: exceptions, crashes, fatal errors, ANRs and failed assertions | |
| background | No | Send the app to the background and bring it back at the end (Android, iOS, tvOS). Default true | |
| launchWaitMs | No | How long to wait after launch before looking at the screen. Default 6000 |