Convert a document to Markdown with MarkItDown
convert_documentConvert a document up to 8 MB to Markdown with MarkItDown and return it.
Pass the file as base64 in content_base64, or as a download link in
file, and its name in filename. The extension decides the type: .pdf,
.docx, .pptx, .xlsx, .html, .htm or .txt. Returns markdown and meta
(filename, length in characters). PDFs come back as the text of
their text layer, without headings and without OCR. Works without an
API key at the anonymous rate limit.
Credits: 1 per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The file as a download link, instead of `content_base64`. In ChatGPT, pass the user's uploaded file here. Other clients can set `download_url` to a public https URL. | |
| filename | Yes | The file name with its extension (.pdf, .docx, .pptx, .xlsx, .html, .htm or .txt). The extension decides how the file is read. | |
| content_base64 | No | The file content, base64-encoded. Up to 8 MB before encoding. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||