babelwrap_wait_for
Wait for text, CSS selector, or URL condition on a page after an action. Useful for async loading, SPA navigation, or content changes.
Instructions
Wait for a condition on the page before proceeding.
Useful after clicking a button that triggers async loading, SPA navigation, or any action where you need to wait for specific content to appear.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The active session ID. | |
| text | No | Wait until this text appears on the page. | |
| selector | No | Wait until this CSS selector matches a visible element. | |
| url_contains | No | Wait until the URL contains this string. | |
| timeout_ms | No | Maximum time to wait in milliseconds (default: 10000, max: 30000). | |
| compact | No | If True, return a compact snapshot with minimal whitespace. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||