Html Tables
html_tablesExtract HTML tables from a public URL (SSRF-safe fetch) or an HTML string into clean JSON: header detection (thead or leading th rows, multi-row headers joined), rowspan / colspan expansion, captions, rows as objects keyed by header or as arrays, optional number parsing ("$1,234.50", "45%"), and table choice by index or CSS selector (e.g. table.wikitable). Layout tables with too few rows are skipped. Price: $0.003 USDC per successful call (x402, Solana). Same tool over HTTPS: POST https://scorptech.it.com/api/x402/v1/html-tables
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": "html_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) page (or use html) | |
| html | No | HTML source instead of url | |
| index | No | Only the table at this 0-based position (after selector) | |
| format | No | objects | |
| header | No | auto = thead / all-th rows; first = first row is the header; none = no header | auto |
| maxRows | No | Rows returned per table | |
| minRows | No | Skip tables with fewer data rows | |
| numbers | No | Convert numeric-looking cells to numbers | |
| selector | No | CSS selector choosing tables, e.g. table.wikitable or #results table | |
| maxTables | No |