PDF to text: send an https link or base64 and get the text
pdfPDF to text: send an https link or base64 (up to 15 MB) and get the text page by page plus title, author, page count and dates. Text PDFs only: a scanned PDF without a text layer answers 422 and is not charged. Takes about 17 s; allow a 30 s timeout. Price: $0.003 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | http(s) link to a PDF | |
| maxChars | No | Cut the text at this many characters, 1000-500000, default 100000 | |
| pdf_base64 | No | Alternative: the PDF as base64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| text | No | ||
| chars | No | ||
| pages | No | ||
| title | No | ||
| author | No | ||
| byPage | No | ||
| creator | No | ||
| subject | No | ||
| producer | No | ||
| createdAt | No | ||
| truncated | No | ||
| modifiedAt | No | ||
| pagesReturned | No |