Parse a local file or document URL
parse_documentRead local or web documents (PDF, DOCX, XLSX, etc.) and convert them to Markdown or JSON text entirely on your machine, without uploading files.
Instructions
Read a document from a local path or a URL and return its text as Markdown. Supports PDF, DOCX, XLSX, PPTX, EPUB, ODT, CSV, JSON, HTML and plain text. Spreadsheets become Markdown tables, presentations become one section per slide, DOCX keeps headings, lists and tables, and PDFs get their hyphenation and column artefacts repaired. Everything is parsed on this machine — no upload, no conversion service.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Absolute http(s) URL of a document. Mutually exclusive with `path`. | |
| path | No | Local file path (absolute, or relative to the server working directory). | |
| sheet | No | For spreadsheets: only return the worksheet with this name. | |
| format | No | Output format. "markdown" (default) is compact and readable; "json" returns structured data for post-processing. | |
| max_chars | No | Maximum characters of content to return. Longer content is truncated and a `next offset` is reported so you can continue reading. |