Inspect element
browser_inspect_elementDiagnose layout and visibility issues by inspecting an element's tag, attributes, box model, form state, and computed styles.
Instructions
DevTools-style inspection of one element: tag, attributes, box model, form state, and computed styles. Use it to diagnose layout and visibility problems.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| css | No | CSS selector, as an alternative to ref. | |
| ref | No | Element ref from the most recent snapshot, e.g. "e12". Preferred — refs are exact. Only valid for the page state that produced them. | |
| name | No | Accessible name to match alongside role. | |
| role | No | ARIA role, e.g. "button". Combine with name for an accessible-name match. | |
| index | No | Which match to use when the selector is ambiguous (0-based, default 0). | |
| props | No | Extra computed CSS properties to include, e.g. ["flex-direction","margin"]. | |
| sessionId | Yes | Session id returned by browser_start. |