wait_window
Waits for a window title to match a condition (case-insensitive substring) or until timeout, optionally targeting a specific window ID. This replaces external polling to confirm app or page readiness.
Instructions
等待窗口标题满足条件(server 内部轮询,单次调用完成)。title_contains 忽略大小写;window_id 指定则只盯该窗口,否则盯活动窗口;超时返回超时提示。用于等页面加载/应用启动,替代外部反复轮询。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "wait_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| window_id | No | ||
| title_contains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |