PDF to text: extract text from a PDF URL, page by page
page_pdf_textDownload a PDF from a public URL (max 20 MB, 300 pages per call) and return its text layer as clean UTF-8: full text plus per-page text, page count, title, author, creation date and word count. Choose pages with 'pages' (e.g. 1-3,7) and cap output with max_chars (default 100,000) to fit your context window. Use for research papers, reports, invoices, contracts, manuals, government filings. Scanned image-only PDFs return has_text_layer=false (no OCR). Password-protected PDFs are refused (no charge). Price: $0.005 per call (USDC on Base via x402); the first 10 calls per day are free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "page_pdf_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public URL of the PDF file | |
| pages | No | Optional pages to return, e.g. 1-3,5 (default all, max 300) | |
| max_chars | No | Optional max characters returned, 1000–500000 (default 100000) |