Convert Any Document to Markdown
convert_documentConvert a document file (base64-encoded bytes) to Markdown or text.
Dispatches on the filename extension. Supported: PDF, images (OCR), spreadsheets (CSV, XLSX, XLSM, XLS, ODS), DOCX, PPTX, RTF, EPUB, TXT, MD, HTML, JSON, XML.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_base64": "<file_base64>",
"filename": "<filename>"
},
"name": "convert_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original filename (its extension selects the converter). | |
| file_base64 | Yes | The file contents, base64-encoded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |