webview_wait_for
Wait for UI elements, text content, or IPC events in a Tauri app. Supports CSS, XPath, and text strategies for selectors.
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.
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>",
"value": "<value>"
},
"name": "webview_wait_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | What to wait for | |
| value | Yes | Selector, text content, or IPC event name to wait for | |
| timeout | No | Timeout in milliseconds (default: 5000ms) | |
| strategy | No | Selector strategy (applies when type is "selector"): "css" (default), "xpath", or "text". | css |
| 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. |