{"uid":"cap_-zQPU4RRaEvwU7cHP3dlD","slug":"tanod-pdfpeek-pdf-attachments-dfa21484","name":"Tanod pdfpeek PDF Attachments","description":"One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.","url":"https://tanod.dev/v1/pdf/attachments?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"default":null,"description":"Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."},"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"default":null,"description":"extract / add: the attachment's name (add: a new one; no / or \\)."},"action":{"enum":["list","extract","add"],"type":"string","default":"list","description":"list (default): names, sizes and media types; extract: one attachment by `name`, base64; add: attach `file_base64` as `name` (the attachments the PDF has are kept)."},"output":{"enum":["base64","url"],"type":"string","default":"base64","description":"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."},"mime_type":{"anyOf":[{"type":"string","maxLength":127,"minLength":3},{"type":"null"}],"default":null,"description":"add: its media type (default: guessed from the name)."},"pdf_base64":{"anyOf":[{"type":"string","maxLength":13398872,"minLength":1},{"type":"null"}],"default":null,"description":"The PDF as base64 (at most 10 MB decoded per request); or use url."},"description":{"anyOf":[{"type":"string","maxLength":300,"minLength":1},{"type":"null"}],"default":null,"description":"add: a short description stored with the attachment."},"file_base64":{"anyOf":[{"type":"string","maxLength":6666684,"minLength":1},{"type":"null"}],"default":null,"description":"add: the file to attach as base64 (at most 5 MB decoded; with an inline PDF the two together at most 10 MB)."}}},"responseSchema":{"type":"json","example":{"count":1,"action":"list","operation":"attachments","truncated":false,"attachments":[{"name":"notes.txt","size":40,"filename":"notes.txt","mime_type":"text/plain","description":"Sample attachment"}],"input_bytes":1480,"input_pages":1,"untrusted_content":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Lj__ZeLyJjo-7bVITVJPX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"List, extract, or add embedded file attachments in a PDF document","exampleAgentPrompt":"Can you list all the attachments embedded in this PDF — https://example.com/report.pdf — and tell me their names, sizes, and file types?","exampleUseCases":[{"title":"Audit embedded files in a PDF","prompt":"I have this PDF at https://example.com/contract.pdf — can you check what files are attached inside it and list their names, sizes, and MIME types?"},{"title":"Extract a named attachment from PDF","prompt":"Pull out the attachment called 'budget.xlsx' from this PDF I'm sending you as base64 — I need its contents as base64 so I can decode it."},{"title":"Attach a file to an existing PDF","prompt":"Take this PDF (I'll give you it as base64) and attach this CSV file (also base64) to it — name the attachment 'sales_data.csv' and set its description to 'Q1 sales figures'."}],"resultDescription":"A JSON object containing the action performed, attachment list with name/size/filename/MIME type/description fields, total input byte count, page count of the PDF, whether results were truncated, and a flag indicating untrusted content. For 'extract' action, returns the attachment content as base64. For 'add' action, returns the modified PDF.","failureModes":["PDF URL unreachable or returns non-200 — request fails with error","PDF exceeds 20 MB size limit — rejected","Private/internal/IP-literal host URLs refused for security","Base64-encoded PDF exceeds 10 MB decoded limit — rejected","Attachment name contains / or \\ — rejected for 'add' action","Named attachment not found for 'extract' action — error returned","Malformed or non-PDF file submitted — processing error","Combined inline PDF + attachment base64 exceeds 10 MB — rejected"],"whenToPreferThis":"Use this endpoint when you need to programmatically manage embedded file attachments within PDF documents — listing what's there, extracting a specific attachment by name, or embedding a new file into an existing PDF. Prefer this over general PDF text extraction tools when the goal is the attachment layer specifically, not the page content. Useful for document workflows where PDFs serve as containers for associated files (e.g. XML invoices, spreadsheets, JSON metadata).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:33:42.961Z","isFirstParty":false,"canonicalSlug":"tanod-pdfpeek-pdf-attachments-dfa21484"}