webview_wait_for
Wait for elements, text, or IPC events in a Tauri app using CSS, XPath, or text strategies. Specify a timeout to control wait duration.
Instructions
[Tauri Apps Only] Wait for elements, text, or IPC events in a Tauri app. When type is "selector", supports CSS (default), XPath, and text strategies via the strategy parameter. Requires active driver_session. Targets the only connected app, or the default app if multiple are connected. Specify appIdentifier (port or bundle ID) to target a specific app. For browser waits, use Chrome DevTools MCP instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| windowId | No | Window label to target (defaults to "main") | |
| appIdentifier | No | App port or bundle ID to target. Defaults to the only connected app or the default app if multiple are connected. | |
| type | Yes | What to wait for | |
| value | Yes | Selector, text content, or IPC event name to wait for | |
| strategy | No | Selector strategy (applies when type is "selector"): "css" (default), "xpath", or "text". | css |
| timeout | No | Timeout in milliseconds (default: 5000ms) |