query_dom
Query DOM elements on the current page by CSS selector. Returns tag, text content, attributes, and outerHTML for up to 50 matching elements.
Instructions
Query DOM elements on the current page by CSS selector. Returns tag, text content, attributes, and outerHTML for up to 50 matching elements.
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_dom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | CSS selector to query |