element_input
Set text values in input and textarea elements within WeChat mini-programs. Pass the element ID and the text to enter.
Instructions
向 input/textarea 组件输入文本
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>",
"value": "<value>"
},
"name": "element_input"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | 需要输入的文本,仅 input/textarea 组件可用 | |
| element_id | Yes |