query_dom
Query specific elements like form fields, buttons, or error messages via CSS selector to get their tag, text, attributes, and visibility—without reading the whole page.
Instructions
Inspect specific elements: tag, text, attributes, size, visibility.
Use this instead of reading the page when the question is about particular elements — form fields, buttons, error messages, option lists.
Args: selector: CSS selector. tab_id: Exact tab id. Prefer url_pattern. url_pattern: Regex matched against tab URLs. limit: Maximum elements to return. attrs: Only report these attributes. Defaults to a useful set (id, name, type, href, value, placeholder, role, aria-label, data-testid, class) plus disabled/checked/selected state. text_max: Truncate each element's text at this many characters. visible_only: Skip elements that are not rendered.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| attrs | No | ||
| limit | No | ||
| tab_id | No | ||
| selector | Yes | ||
| text_max | No | ||
| url_pattern | No | ||
| visible_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |