page_query
Query the first element matching a WXSS selector on a specified page, and retrieve its element ID to enable further actions.
Instructions
在页面中按 WXSS 选择器查询首个匹配元素(返回 element_id 句柄)
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": {
"page_id": "<page_id>",
"selector": "<selector>"
},
"name": "page_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | ||
| selector | Yes | WXSS 选择器,仅支持部分 CSS 选择器 |