query_selector
Locate a DOM element by CSS selector for debugging. Search from the document root or within a specific node ID to inspect the matching element.
Instructions
Find an element by 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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | Node ID to search within. Uses document root if not specified. | |
| selector | Yes | CSS selector |