Act on the screen
qa_actPerform a single mobile UI action—tap, type, clear, swipe, scroll, press, open a URL, or wait—then wait for the screen to settle and report changed elements and snapshot health.
Instructions
Tap, type, clear, swipe, scroll, press a key, open a URL or wait: one UI step, then it waits for the screen to settle and reports changed/settled, snapshot quality, health, new elements. Target: an @eN ref from qa_snapshot, text, id, a native selector (WDA iOS), or x/y. For 3+ known steps, batch them in one qa_flow_run {flowYaml}. Details: docs/tools.md#qa_act.
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": {
"sessionId": "<sessionId>",
"action": "<action>"
},
"name": "qa_act"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| for | No | wait: {settled:true} (default), or until an element (ref/text/id/selector) is visible; gone:true waits until it is not. | |
| key | No | press (required) | |
| url | No | open_url (required) | |
| mode | No | type: replace (default) clears first. | |
| text | No | type (required) | |
| action | Yes | ||
| submit | No | type: press enter after. | |
| target | No | tap/type/clear (required); swipe: optional start point. | |
| observe | No | diff (default after a snapshot): elements added/removed; full: capped list; none: verdicts only. | |
| direction | No | swipe/scroll (required) | |
| sessionId | Yes | ||
| timeoutMs | No | wait: max ms (default 8000, max 50000; larger values are clamped); others: settle-wait cap. | |
| durationMs | No | tap: press duration (coordinate taps default ~100ms). | |
| maxScrolls | No | scroll: max swipes (default 8). | |
| untilVisible | No | scroll: stop once visible (checked before the first swipe). | |
| ignoreOverlay | No | tap: tap even if an overlay/keyboard covers the target. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| action | No | ||
| changed | No | ||
| settled | No | ||
| elements | No |