inspect
Retrieve details of a web page element using a CSS selector, with optional tab index for target tab.
Instructions
Inspect a page element by CSS selector
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Tab index in the front window; defaults to the current tab | |
| selector | Yes | CSS selector for the target element |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| found | Yes | Whether the selector matched any element | |
| tag | No | Lowercase HTML tag name; present when found | |
| text | No | Trimmed visible text or aria-label or alt; present when found | |
| visible | No | Whether the element is visible in the layout; present when found | |
| disabled | No | Whether the element is disabled or aria-disabled; present when found | |
| attributes | No | Selected key attributes on the element; present when found | |
| rect | No | Viewport-relative bounding box; present when found |