{"id":"com.preteworks/preteworks-api","slug":"com-preteworks-preteworks-api","title":"PreteWorks API","description":"One key for the document-to-web pipeline: scrape, AI-extract, build & edit PDFs, fill forms.","version":"1.0.2","publisher":{"kind":"domain","id":"preteworks.com","label":"preteworks.com","url":"https://preteworks.com"},"website":"https://api.preteworks.com","repository":"","remotes":[{"type":"streamable-http","url":"https://api.preteworks.com/mcp","headers":[{"description":"Bearer <API key> from https://api.preteworks.com/signup (free tier: 500 units/mo, no card).","isRequired":true,"isSecret":true,"name":"Authorization"}]}],"packages":[],"published":"2026-09-08","updated":"2026-09-08","status":"online","auth":"","latency_ms":2529,"checked":"2026-11-19","uptime":100,"checks":3,"tools":[{"name":"render_html_to_pdf","title":"Render HTML to PDF","description":"Render a full HTML document to a PDF. External subresources are blocked for safety — inline images/fonts as data: URIs. Returns a file_id (for chaining) and a ~1h download URL.","read_only":false},{"name":"number_pdf","title":"Number PDF pages","description":"Stamp a page number on every page. position: bottom-center (default) | bottom-left | bottom-right | top-center | top-left | top-right. format supports {n} and {total}. Returns a file_id + ~1h URL.","read_only":false},{"name":"pdf_info","title":"Read PDF info","description":"Read a PDF's metadata (title, author, subject, keywords, creator, producer, dates) plus page count and page size, as JSON.","read_only":true},{"name":"set_pdf_metadata","title":"Set PDF metadata","description":"Set a PDF's title, author, subject, keywords (array or comma string) and/or creator. Only the fields you provide change. Returns a file_id + ~1h URL.","read_only":false},{"name":"render_document","title":"Generate a document","description":"Render a structured document to a PDF from a named template (invoice, receipt, report). Money/totals are computed for you. Returns a file_id (for chaining) and a ~1h download URL.","read_only":false},{"name":"merge_pdfs","title":"Merge PDFs","description":"Combine 2+ PDFs into a single PDF, in the order given. Inputs are file_ids (from prior tools) or base64 PDFs. Returns a file_id (for chaining) and a ~1h download URL.","read_only":false},{"name":"select_pages","title":"Select PDF pages","description":"Keep only the specified pages of a PDF (e.g. [1,3,5]) and drop the rest, preserving order. Returns a file_id (for chaining) and a ~1h download URL.","read_only":false},{"name":"rotate_pdf","title":"Rotate PDF","description":"Rotate every page of a PDF by 90, 180, or 270 degrees (clockwise). Returns a file_id (for chaining) and a ~1h download URL.","read_only":false},{"name":"watermark_pdf","title":"Watermark PDF","description":"Stamp a diagonal grey text watermark (e.g. \"DRAFT\", \"CONFIDENTIAL\") across every page of a PDF. Returns a file_id (for chaining) and a ~1h download URL.","read_only":false},{"name":"extract_pdf_text","title":"Extract text from a PDF","description":"Extract the text content of a PDF — for RAG, summarization, or search. Accepts a file_id (from a prior tool) or a base64-encoded PDF, and returns the text inline. Not OCR: a scanned/image-only PDF returns little or no text.","read_only":true},{"name":"images_to_pdf","title":"Images to PDF","description":"Combine PNG/JPEG images (base64) into a PDF, one image per page. Returns a file_id and a ~1h URL.","read_only":false},{"name":"markdown_to_pdf","title":"Render Markdown to PDF","description":"Render Markdown to a clean, print-styled PDF. Returns a file_id and a ~1h URL.","read_only":false},{"name":"split_pdf","title":"Split a PDF","description":"Split a PDF into multiple PDFs — one per page by default, or by page ranges like '1-3;4-6'. Returns a file_id + URL per part.","read_only":false},{"name":"read_pdf_form","title":"Read a PDF form","description":"List a PDF's form fields (name, type, value, options) as JSON.","read_only":true},{"name":"fill_pdf_form","title":"Fill a PDF form","description":"Fill a PDF's form fields from a map of field -> value; optionally flatten. Returns a file_id and a ~1h URL.","read_only":false},{"name":"file_to_markdown","title":"File to Markdown","description":"Convert a Word (.docx), Excel (.xlsx) or CSV file (base64) into clean Markdown — for RAG, agents and pipelines. DOCX keeps headings/lists/tables; spreadsheets become Markdown tables (one per sheet). Returns Markdown inline. Optional 'format' (docx|xlsx|csv) overrides auto-detection.","read_only":true},{"name":"data_to_spreadsheet","title":"Create a spreadsheet from rows","description":"Turn rows of data into a downloadable XLSX (default) or CSV. 'rows' is an array of objects (keys → header row) or an array of arrays (first row is the header). Returns a file_id (for chaining) and a ~1h download URL.","read_only":false},{"name":"batch_scrape","title":"Batch: URLs to Markdown","description":"Fetch up to 10 public URLs and return each as clean Markdown, in one call — for research/RAG over several pages at once. Private/internal hosts are blocked.","read_only":true},{"name":"crawl_site","title":"Crawl a site to Markdown","description":"Fetch a URL plus up to 7 more same-origin pages it links to (≤8 total), each as clean Markdown. Bounded and synchronous. Private/internal hosts are blocked.","read_only":true},{"name":"map_site","title":"Map a site's URLs","description":"Discover the same-origin URLs linked from a page — the site map, with no page content fetched. Private/internal hosts are blocked.","read_only":true},{"name":"extract_data","title":"Extract structured data (AI)","description":"Extract specified fields from a web page, PDF, or Office file as JSON, using AI. Provide 'fields' plus ONE source: a 'url', a 'pdf' (file_id or base64), or a 'file' (base64 .docx/.xlsx/.csv). Returns a JSON object mapping each field to its value, or null when absent.","read_only":true},{"name":"summarize_document","title":"Summarize a document (AI)","description":"Summarize a web page, PDF, Office file (.docx/.xlsx/.csv), or raw text using AI. Provide ONE source: 'url', 'pdf' (file_id or base64), 'file' (base64), or 'text'. Optional 'max_words'. Returns the summary.","read_only":true},{"name":"answer_from_document","title":"Answer a question from a document (AI)","description":"Answer a question grounded ONLY in a source document — a web page, PDF, Office file, or raw text. Provide 'question' plus ONE source: 'url', 'pdf', 'file' (base64), or 'text'. Says so when the answer isn't in the document.","read_only":true},{"name":"docx_to_text","title":"DOCX to text","description":"Extract the text of a .docx document (base64). Returns the text inline.","read_only":true},{"name":"docx_to_pdf","title":"DOCX to PDF","description":"Convert a .docx document (base64) to a PDF. Returns a file_id and a ~1h URL.","read_only":false},{"name":"read_url","title":"Read a web page as Markdown","description":"Fetch a public http/https URL and return its main content as clean Markdown — ideal for giving an agent readable web content for research or RAG. Private/internal hosts are blocked.","read_only":true},{"name":"url_to_pdf","title":"Snapshot a web page as PDF","description":"Fetch a public http/https URL and render the live page to a PDF. Returns a file_id (chainable into the PDF tools) and a ~1h download URL. Private/internal hosts are blocked.","read_only":false},{"name":"url_to_screenshot","title":"Screenshot a web page","description":"Fetch a public http/https URL and capture a PNG screenshot. Set full_page for the entire scroll height. Returns a file_id and a ~1h download URL.","read_only":false},{"name":"scrape_page","title":"Scrape a web page (HTML + links + metadata)","description":"Fetch a public http/https URL and return its rendered HTML, the links on the page, and page metadata (title/description/OpenGraph/canonical/favicon) — in one render. For clean Markdown use read_url instead. Private/internal hosts are blocked.","read_only":true}],"server_info":{"name":"preteworks","version":"1.1.0"},"category":"productivity","tags":["web-search","image-video","browser"],"kind":"remote","source":"registry","submitted":{},"first_party":true,"domain_rank":null,"score":100,"indexable":true,"first_seen":"2026-09-08","stars":0,"badges":[],"sponsor":null,"page":"https://agentsindex.org/agents/com-preteworks-preteworks-api/"}