query
Extract structured data from a web page using CSS selectors, or find visible elements by text and return their selector paths. Use it for lists, tables, status labels, or dropdown options.
Instructions
Extract structured data by CSS selector (lists, tables), or FIND BY TEXT with contains: every visible element whose text includes it, with a selector path and the ref it sits in — use it instead of eval to check "is X on the page", read a status label, or find a dropdown option. For lists pass html:true first to inspect markup, then extract: field → sub-selector, "@attr" for attributes, e.g. {title:".name", link:"a@href"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | Return outerHTML of matches instead, to inspect structure. true = 1200 chars each. | |
| limit | No | Max matches, default 100. | |
| tabId | No | Target tab id. Omit to use the active controlled tab. | |
| extract | No | field → sub-selector (optionally "sel@attr"). Omit to get plain text per match. | |
| spaceId | No | Pin this command to an owned BeatBrowser TaskSpace. Also pass its tabId. | |
| contains | No | Text to find (case-insensitive); selector then only scopes the search. | |
| selector | No | CSS selector for the repeating row/card element. |