page_query_xpath_all
Retrieve all matching elements from a page via XPath, obtaining element handles for automated interaction. Handles are limited to the last 1000 when results exceed that count.
Instructions
在页面中按 XPath 表达式查询所有匹配元素(返回 element_id 句柄数组;超 1000 个时仅末尾 1000 个句柄可用)
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>",
"xpath": "<xpath>"
},
"name": "page_query_xpath_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xpath | Yes | XPath 表达式 | |
| page_id | Yes |