act_and_verify
Run a desktop GUI action, then verify it by checking whether the expected accessibility element appears, vanishes, or matches a label; report success only when that state is observed.
Instructions
Act, then prove the act worked. Runs an action and reports ok=true ONLY when the expected state was observed - never merely because the action was delivered. The expectation is read from the live accessibility tree (an element that must appear or vanish, or a control whose label must match), so a click that changed nothing is a miss, not a success.
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": {
"hwnd": "<hwnd>",
"expect": "<expect>"
},
"name": "act_and_verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hwnd | Yes | ||
| budget | No | how many times a retry may drive the user's pointer (0 = never, the default). Retries stay on the semantic rungs unless this allows more | |
| expect | Yes | the state to observe after the action | |
| method | No | auto | |
| dry_run | No | ||
| retries | No | ||
| timeout | No | ||
| interval | No | ||
| name_regex | No | fallback selector when the automation_id is absent | |
| control_type | No | ||
| automation_id | No | the element to act on |