调用 wx API
wdt_wx_methodInvoke WeChat Mini Program wx APIs such as getSystemInfoSync or getStorageSync and return their results for automation and runtime data retrieval.
Instructions
通过 miniProgram.callWxMethod 调用 wx 方法,并返回结果。例如 getSystemInfoSync、getStorageSync。
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": {
"method": "<method>"
},
"name": "wdt_wx_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| method | Yes | wx 方法名,如 getSystemInfoSync |