call_wx_method
Call WeChat global methods (wx.*) in AppService and return the result.
Instructions
在 AppService 中调用 wx 全局方法并返回结果
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": "call_wx_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 方法参数(异步方法无需传 success/fail 回调) | |
| method | Yes | 需要调用的 wx 方法名,如 getStorageSync / setStorage |