convert_local_file
Converts local PDF, Office, and OpenDocument files into Markdown files saved to your filesystem. Makes documents AI-ready for use with Claude and other MCP clients.
Instructions
将本地文件转换为markdown文件并保存到文件系统
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_path": "<file_path>"
},
"name": "convert_local_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_size | No | 单个文件大小限制(MB),默认20MB | |
| file_path | Yes | 本地文件绝对路径,必须使用完整的绝对路径(如/Users/user/document.pdf)。支持格式:PDF、Office文档(doc/docx/xls/xlsx/ppt/pptx)、OpenDocument(odt/ods/odp)。不支持图片 | |
| overwrite | No | 是否覆盖已存在的文件 | |
| output_path | No | 输出markdown文件路径,默认为原文件名+.md |