query_selector_all
Find all DOM elements matching a CSS selector, optionally scoped to a specific node, to inspect or debug page structure.
Instructions
Find all elements matching a CSS selector.
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_all"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Node ID to search within. Uses document root if not specified. | |
| selector | Yes | CSS selector |