query_selector
Finds all DOM elements matching a CSS selector and returns their tag name, ID, and class list for debugging and inspection.
Instructions
在 DOM 中查找匹配选择器的所有元素,返回元素基本信息(tagName/id/classList)
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": {
"selector": "<selector>"
},
"name": "query_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS 选择器 |