midscene_aiWaitFor
Monitors a web page until a specified natural language condition is met, using AI to poll and verify the assertion within a defined timeout and interval.
Instructions
Waits until a specified condition, described in natural language, becomes true on the page. Polls the condition using AI.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
assertion | Yes | Condition to monitor on the page, described in natural language. | |
checkIntervalMs | No | How often to check the condition (ms). Default: 3000 | |
timeoutMs | No | Maximum time to wait (ms). Default: 15000 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"assertion": {
"description": "Condition to monitor on the page, described in natural language.",
"type": "string"
},
"checkIntervalMs": {
"default": 3000,
"description": "How often to check the condition (ms).\nDefault: 3000",
"type": "number"
},
"timeoutMs": {
"default": 15000,
"description": "Maximum time to wait (ms).\nDefault: 15000",
"type": "number"
}
},
"required": [
"assertion"
],
"type": "object"
}