browser_query_elements
Extract webpage elements using CSS selectors to analyze structure, locate interactive components, and inspect form fields with tag names, text content, and HTML attributes.
Instructions
[Disabled] Query all elements matching a CSS selector and return their tag names, trimmed text content (first 200 chars), and specified HTML attributes. Useful for understanding page structure, finding interactive elements, and inspecting forms. Returns up to limit elements.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tabId | Yes | Tab ID of the page to query | |
| selector | Yes | CSS selector to query | |
| limit | No | Max elements to return — defaults to 100 | |
| attributes | No | Attribute names to extract — defaults to id, class, href, src, type, name, value, placeholder |