read_file_by_markdown
Converts documents (docx, pptx, xlsx, pdf, html, images) to Markdown format. Supports local files or course resources via paper_id and filename.
Instructions
用 markitdown 把文件内容读成 Markdown。
两种模式(传 file_path 优先):
- file_path:读本地文件。
- paper_id + filename:读小雅课程资源(同时必填)。
支持 docx/pptx/xlsx/pdf/html/图片 OCR 等常见格式。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_file_by_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | 资源文件名(通过 query_course_resources 获取) | |
| paper_id | No | 资源文件的 paper_id(通过 query_course_resources 获取) | |
| file_path | No | 本地磁盘文件路径 |