element_call_method
Call a method on a custom component instance in WeChat mini-programs. Provide element ID and method name, with optional args, to trigger specific component behavior during automation.
Instructions
调用自定义组件实例方法
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": {
"element_id": "<element_id>",
"method": "<method>"
},
"name": "element_call_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 方法参数 | |
| method | Yes | 需要调用的组件实例方法名,仅自定义组件可用 | |
| element_id | Yes |