PDF text extraction
pdf_text_extractionPDF text extraction for RAG: page-aware JSON (pages[].page + pages[].text, page_count, empty_text_pages, combined text, source + text SHA-256). Embedded text only, no OCR. $0.01 USDC on Base or Algorand. Caps 20 pages / 20 MiB / 100k chars. Failed extractions not settled. Free preview: add preview=1 (GET or POST) for the first 500 characters unpaid (rate-limited; over 5 MiB omit preview and pay). Price (USDC): Base single $0.01; Algorand single $0.01. Paid per call with x402 v2 (params._meta["x402/payment"]).
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": "pdf_text_extraction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public HTTP/HTTPS URL to a digital PDF; no credentials or private addresses. | |
| preview | No | If true and no payment is sent, return a free truncated preview (first 500 characters + page count). Source files over 5 MiB get the normal paid 402 instead of a preview; pay $0.01 for PDFs up to 20 MiB. Ignored on paid calls. |