Inspect element
dom_inspectInspect any element like the DevTools Elements panel: get outer HTML, attributes, box model, computed and inherited styles, matched CSS rules, event listeners, and accessibility properties for debugging.
Instructions
Inspects one element like the DevTools Elements panel: outer HTML, attributes, box model, computed styles, matched CSS rules with their stylesheet and line, inherited styles, event listeners, and accessibility properties.
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_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Element ref from page_snapshot or find, e.g. "e12". | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| include | No | Sections to include (default all except full computed). | |
| selector | No | CSS selector (first match) instead of a ref. | |
| allComputed | No | Return every computed property instead of the common ones. |