act_and_verify
Performs a UI action, waits for network idle, then verifies a UI assertion and captures a screenshot automatically when verification fails.
Instructions
Composite action & assertion: performs a UI action (click, click_ax, type_text, type_ax), waits for network idle, verifies assertion (assert_ui), and captures a screenshot immediately if assertion fails.
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": {
"action": "<action>",
"assertion": "<assertion>"
},
"name": "act_and_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| targetId | No | ||
| assertion | Yes | ||
| processId | No | Process ID. If omitted, uses the single running app. | |
| waitForSelector | No |