element_query
Find the first child element matching a WXSS selector within a specified element in a WeChat mini-program. Use element_id and selector to locate the target child element.
Instructions
在元素内按 WXSS 选择器查询首个匹配子元素
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>",
"selector": "<selector>"
},
"name": "element_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | WXSS 选择器 | |
| element_id | Yes |