通过 miaoda-studio-cli doc-parse 将文档解析为 Markdown 格式(基于 IDP 智能文档解析)。
参数说明必需默认值--file文档路径或 URL是---output, -o输出格式: text/json否text
格式扩展名典型场景PDF.pdf报告、论文、合同Word.doc, .docx文档、方案PowerPoint.pptx演示文稿Excel.xlsx表格数据CSV.csv结构化数据纯文本.txt, .md文本文件网页.htmlHTML 页面
bash
# 解析本地 PDF 文件
miaoda-studio-cli doc-parse --file report.pdf
# 解析远程文档并输出 JSON
miaoda-studio-cli doc-parse --file https://example.com/document.docx --output json
# 解析 Excel 表格
miaoda-studio-cli doc-parse --file data.xlsx --output json
text
需要获取文档内容
├─ 文档是本地文件或可下载 URL → miaoda-studio-cli doc-parse
├─ 文档是网页(需要抓取)→ miaoda-studio-cli web-crawl(见 miaoda-web-fetch skill)
└─ 文档是飞书云文档 → 使用 feishu skill
错误正确做法用 miaoda-studio-cli doc-parse 解析网页 URL网页内容用 miaoda-studio-cli web-crawl(见 miaoda-web-fetch skill)不检查文件格式是否支持确认文件扩展名在支持列表中需要结构化数据但未加 --output json需要程序处理时加 --output json文件路径包含空格未加引号路径有空格时用引号包裹: --file "my file.pdf"解析飞书云文档用 doc-parse飞书云文档使用 feishu skill 通过 API 读取