extract_table
Read real HTML table markup as JSON, using header cells as keys and each row as an object. Filter rows server-side to return only matching data, not the entire table.
Instructions
Read a real as JSON: thead cells become keys, each row an object. Only for tabular markup — where filters rows server-side, so one matching row out of 1500 costs a few hundred bytes instead of the whole document. row_count is the table total, match_count how many rows passed the filter. No table at index is an error saying how many the selector found; for cards and lists use extract.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Which table to take when the selector matches several, 0-based | |
| where | No | {column: substring} rows must match, case-insensitive (names too). Key "any" matches any cell. | |
| offset | No | Skip N rows of the (filtered) set before applying max_rows. | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one | |
| columns | No | Return only these columns per row. | |
| max_rows | No | Max rows returned to you (output cap). | |
| selector | No | The table to read; ">>>" pierces shadow DOM | table |
| scan_rows | No | Max rows materialized in-page to scan/filter; raise for very large tables. |