convert_document_to_markdown
Convert doc, docx, ppt, pptx, xls, xlsx, PDF, ODT, ODS, ODP, RTF, EPUB, and CSV files into clean GitHub-Flavored Markdown locally—no API key, no network access.
Instructions
用 anydoc 将文档转换为干净的 GitHub-Flavored Markdown。支持 doc/docx/ppt/pptx/xls/xlsx/pdf(文本型)/odt/ods/odp/rtf/epub/csv。纯本地运行,无需 API key,不联网。注意:扫描型/图片型 PDF 不支持(anydoc 无 OCR);不渲染文档内嵌图片。
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": {
"filename": "<filename>",
"content_base64": "<content_base64>"
},
"name": "convert_document_to_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | 原始文件名(含扩展名),用于格式识别,例如 report.docx | |
| content_base64 | Yes | 文件内容的 base64 编码字符串 |