element_call_context_method
Call a context method on a video component in a WeChat mini-program. Pass the element ID and method name to control video playback or retrieve its state.
Instructions
调用 video 组件上下文 Context 方法
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_context_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | 方法参数 | |
| method | Yes | 上下文 Context 方法名,仅设置了 id 的 video 组件可用 | |
| element_id | Yes |