inspect_element
Inspect a DOM element by CSS selector to retrieve its tag, text, attributes, computed styles, bounding box, visibility, parent, and children for debugging and responsive layout checks.
Instructions
Inspect a specific DOM element using a CSS selector. Returns tag, text, attributes, computed styles, bounding box, visibility, parent, and relevant children.
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 |
|---|---|---|---|
| selector | Yes | CSS selector of the target element (e.g. "header", "#hero", ".navbar-brand", "button.submit") |