模拟器原生交互
wdt_nativeExecutes native WeChat DevTools actions such as navigating home/back, handling modals, authorization prompts, payment/share dialogs, and switching tabBar tabs during mini program automation.
Instructions
执行原生层动作:goHome / navigateLeft / confirmModal / cancelModal / authorizeAllow / authorizeCancel / closePaymentDialog / shareCancel / shareConfirm / switchTab。
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": {
"action": "<action>"
},
"name": "wdt_native"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | switchTab 需要的 tabBar 路径 | |
| action | Yes |