Inspect one element
inspect_elementInspect the first element matching a CSS selector to retrieve its attributes, box, computed styles, text, and outer HTML, helping debug layouts and verify selectors.
Instructions
Inspect the first element matching a CSS selector: stable selector, attributes, box, selected computed styles, relatives, text and clipped outer HTML.
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": "inspect_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | No | Target page id from get_pages; omit to use the selected page | |
| selector | Yes | CSS selector understood by document.querySelector |