Wait for condition
wait_forWait for a condition like element visibility or text match before proceeding, replacing arbitrary sleep delays in legacy IE automation.
Instructions
Wait until a condition holds. present/visible/enabled/text require a selector; text/url/title require text, which is matched as a substring. Use this instead of sleeping after an action.
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": {
"type": "<type>"
},
"name": "wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Expected substring for text/url/title conditions. | |
| type | Yes | Condition to wait for. | |
| frame | No | Optional iframe/frame to switch into first. One level of nesting is supported. | |
| selector | No | ||
| timeoutMs | No | Timeout in milliseconds. Defaults to IE_MCP_TIMEOUT_MS. |