element_callMethod
Invoke a method on a custom component instance in a WeChat mini program, enabling automated testing and interaction with component-specific behaviors.
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": {
"selector": "<selector>",
"method": "<method>"
},
"name": "element_callMethod"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | ||
| selector | Yes | ||
| innerSelector | No | ||
| method | Yes | ||
| args | No |