等待页面条件
wdt_waitWaits for a CSS selector to appear or for a fixed duration, up to 60 seconds, helping synchronize WeChat DevTools automation before interacting with elements.
Instructions
等待 CSS 选择器出现(传字符串)或等待固定毫秒数(传数字),最长 60 秒。
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": {
"target": "<target>"
},
"name": "wdt_wait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | ||
| timeoutMs | No | MCP 层超时,默认 60000 |