{"uid":"cap_uX_H854ZqEwk2CfTt4F-Y","slug":"agent-tools-pdf-to-text-upload-43d3345e","name":"Agent Tools – PDF to Text (Upload)","description":"PDF to text from uploaded bytes: send the raw PDF as the request body (max 20 MB). For files that are not on a public URL. ?format=text or markdown.","url":"https://agent-tools.jbarkules.workers.dev/v1/pdf/text/upload?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":[],"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"text":"Dummy PDF file","pages":1,"format":"text","characters":14}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0035/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0035","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0035","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AVupKhToM6tSAE3JrGkzT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0035","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an uploaded PDF file (sent as raw request body bytes) to extracted plain text or markdown, for files not accessible via a public URL.","exampleAgentPrompt":"I have a PDF file on my computer that isn't publicly accessible — can you extract all the text from it as plain text so I can summarize it?","exampleUseCases":[{"title":"Extract text from a confidential contract","prompt":"I have a private NDA PDF saved locally that I can't share via a public link — please extract all the text from it so I can review the key clauses."},{"title":"Index a local research paper for RAG","prompt":"I've got a research paper PDF on my machine that I want to index in my knowledge base — can you pull out the full text in plain text format so I can chunk and embed it?"},{"title":"Convert a scanned report to readable text","prompt":"I have a local PDF report that isn't online anywhere — can you convert it to markdown so I can read through it and pull out the important numbers?"}],"resultDescription":"A JSON object containing the extracted text content, the number of pages, the output format used (text or markdown), and a character count. Example: {\"text\":\"...\",\"pages\":3,\"format\":\"text\",\"characters\":5120}.","failureModes":["File exceeds 20 MB limit — returns an error indicating the file is too large","Non-PDF file type sent as body — may return a parsing error or empty text","Corrupted or password-protected PDF — extraction may fail or return partial text","No body provided in request — returns a validation error","Unsupported format query parameter value — defaults or errors depending on implementation"],"whenToPreferThis":"Choose this endpoint when the PDF file is local or otherwise not accessible via a public URL, making it impossible to pass a URL to a link-based extraction endpoint. Use this over the URL-based PDF endpoint whenever the document is private, generated on-the-fly, or stored locally. Prefer this over OCR endpoints when the source is a PDF (not a raw image) and text layer extraction is sufficient.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T07:01:06.998Z","isFirstParty":false,"canonicalSlug":"agent-tools-pdf-to-text-upload-43d3345e"}