extract_tables
Extract tables from a web page into JSON, CSV or XLSX: headers and rows for each table, with numbers typed. Pass a url or raw HTML. Paid via x402 ($0.003 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment. Free trial: 3 unpaid calls/day per IP on this tool (HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "extract_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) page to read. Send url or html. | |
| html | No | Raw HTML (up to 1.5 MB) instead of url. | |
| limit | No | Maximum tables to return (default 20). | |
| table | No | Return only this table (1-based index from a previous call). | |
| format | No | json (default), csv (one CSV string per table) or xlsx (one workbook, one sheet per table, base64). | |
| header | No | auto (default: <th>/<thead> for HTML, first non-numeric row for PDF), first = treat the first row as header, none. | |
| orient | No | json only: rows = arrays (default) or records = one object per row keyed by header. | |
| numbers | No | json only: convert plain numbers such as 1,200 or 3.5 to numbers (default false). XLSX always stores them as numbers. | |
| min_rows | No | Skip tables with fewer rows, header included (default 2). |