browser_query
Extract multiple fields from all elements matching a CSS selector in the active or specified browser tab, avoiding repeated per-element script calls.
Instructions
Extract multiple fields from every element matching a CSS selector.
Much faster and cheaper than calling browser_js per element. The default
fields cover the common ones (text, href, value, src, alt, id, name);
pass fields=["text","data-foo","bounds","attrs"] to get arbitrary
attributes or bounds/attrs/html extras.
Args: selector: CSS selector. fields: Field names to extract per element. Defaults to a useful set. limit: Max elements to return (capped at 500). tab_id: Optional tab; defaults to active.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| fields | No | ||
| tab_id | No | ||
| selector | Yes |