Convert a document to clean, AI-ready Markdown
convert_documentConvert any document (PDF, DOCX, PPTX, XLSX, CSV, JSON) to compact, AI-ready Markdown. Supports OCR for scanned PDFs to reduce token usage.
Instructions
Convert a document (PDF, DOCX, PPTX, XLSX, CSV, JSON) into clean, compact, AI-ready Markdown using PackForAI. Provide either a local file path or a public url. Returns the compact Markdown plus token-savings, ready to read or paste into a prompt. Use ocr: true for scanned / image-only PDFs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | Force OCR for scanned or image-only PDFs (Pro). Defaults to false. | |
| url | No | Public https URL of a document to fetch and convert. | |
| full | No | Return the full document.md (e.g. complete spreadsheet tables) instead of the compact version. Defaults to false. | |
| path | No | Absolute path to a local document file to convert. |