PDF text extraction
pdf_textExtract text per page from a PDF given by public URL or base64 (max 4 MiB, 100 pages). No OCR: scanned PDFs are flagged as likely_scanned. Price: 0.02 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-text.
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_text"
}
}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). | |
| joined | No | Also return all pages joined in 'text'. | |
| max_pages | No | ||
| pdf_base64 | No | Alternative to 'url': base64 PDF bytes (max 4 MiB decoded). |