Browser Get Element
browser_get_elementInspect one DOM element by CSS selector to get its tag, attributes, bounding box, visibility, text, and computed CSS. Use it to debug appearance or confirm visible and enabled before interacting.
Instructions
Get full detail on ONE element by selector: tag name, all attributes, bounding box, visibility, text content, and a curated set of computed CSS properties. Complements browser_extract (text/attribute only) and browser_snapshot (a whole page of elements) — use this when you need to inspect a single specific element closely, e.g. checking why something looks wrong, or confirming an element is actually visible/enabled before interacting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Force a specific mode. Defaults to extension. | |
| styles | No | Which computed CSS properties to include (default: display, visibility, color, background-color, font-size, font-weight). Pass your own list for anything else, e.g. ["z-index", "opacity"]. | |
| selector | Yes | CSS selector of the element to inspect. Prefix "pierce/" to reach into shadow DOM. | |
| sessionId | No | Puppeteer session ID for headless mode. Skips mode selection. |