extract
Read repeated non-tabular structures such as product cards, list items, or search results as one record per item by matching an item selector and mapping fields.
Instructions
Read repeated non-tabular structures — product cards, list items, search results — as one record per item: item_selector matches the repeating block, fields map output names to selectors relative to it. Read-only, deterministic, parsed server-side from the main-document HTML. Default output: total and shown, then one tab-separated row per item under the field names; a field with no match is empty (null in json).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | field name → {selector, attr} | |
| format | No | lines is compact; json keeps one object per record | lines |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| save_to | No | Absolute path: write the records as JSON there and return the path instead of the content | |
| max_items | No | Cap on records returned, in document order | |
| max_length | No | Max output chars | |
| item_selector | Yes | CSS selector matching each item |