wait_for_element
Waits for a matching UI element to exist and optionally reach a specified state, so automation can proceed after clicks trigger asynchronous UI updates.
Instructions
Wait until a matching element exists and optionally has the given state. Useful after clicks that trigger async UI changes.
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": {
"window_id": "<window_id>"
},
"name": "wait_for_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| role | No | ||
| state | No | ||
| timeout | No | ||
| window_id | Yes |