Inspect DOM
domQuery page elements to return metadata, HTML, text, attributes, computed styles, rectangles, or counts, including open shadow roots via the '>>>' selector separator.
Instructions
Query DOM elements and return metadata, HTML, text, attributes, computed styles, rects or counts. Supports open shadow DOM with the ">>>" separator, e.g. "my-app >>> button".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dom"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | ||
| ref | No | ||
| limit | No | ||
| tabId | No | ||
| xpath | No | ||
| action | No | query | |
| frameId | No | ||
| timeout | No | ||
| selector | No | ||
| maxLength | No | ||
| properties | No | CSS properties to return for action="styles". | |
| includeHtml | No |