PDF table extraction
pdf_tablesExtract tables (rows and header-keyed records) from a PDF given by public URL or base64 (max 4 MiB, 30 pages). 'lines' strategy for ruled tables, 'text' for whitespace-aligned ones. Price: 0.04 USDC per successful call on Base via x402 (pass the signed payment in _meta['x402/payment']; failed calls are not charged). HTTP equivalent: POST https://json-canon-x402.fly.dev/v1/pdf-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": "pdf_tables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL of the PDF (max 4 MiB, 3 redirects, public IPs only). | |
| pages | No | 1-based pages to read. Default: all (up to max_pages). | |
| header | No | Also return rows as records keyed by the first row. | |
| strategy | No | 'lines' for ruled tables, 'text' for whitespace-aligned columns. | lines |
| max_pages | No | ||
| pdf_base64 | No | Alternative to 'url': base64 PDF bytes (max 4 MiB decoded). | |
| include_text | No | Also return page text. |