page_call_method
Invokes a specific method on a WeChat mini-program page instance, including event handlers and custom methods.
Instructions
调用页面实例方法(含 onPullDownRefresh 等事件方法与自定义方法)
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": {
"page_id": "<page_id>",
"method": "<method>"
},
"name": "page_call_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 方法参数 | |
| method | Yes | 页面实例方法名,如 onPullDownRefresh / 自定义方法 | |
| page_id | Yes |