extract_table
Reads an HTML table from the user's Chrome page and returns it as JSON. Filters rows server-side so only matching data is transferred, reducing payload.
Instructions
Read a real as JSON: thead cells become keys, each row an object. Read-only. 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.
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 contains. 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. |