wait_for_gone
Wait for an element to disappear from the DOM or become hidden before proceeding. Use to ensure modals close or loading spinners vanish within a timeout.
Instructions
Block until an element disappears — removed from the DOM or hidden — up to timeout. Returns {success} once it's gone, or times out. Use to wait for a modal/dialog to close or a loading spinner to vanish before the next step.
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": {
"session_id": "<session_id>",
"selector": "<selector>"
},
"name": "wait_for_gone"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | Max wait time in ms (default: 30000) | |
| selector | Yes | CSS selector of element to wait for disappearance | |
| session_id | Yes | Session ID |