用途:把文件路径或 URL 转换为 Markdown。用法为 /convert <file-path or URL>,参数会传给 markitdown MCP 服务器处理。
主要能力:根据参数构造 URI 后调用 convert_to_markdown(uri),并直接输出生成的 Markdown 内容。
URI 构造规则:参数以 http://、https:// 或 data: 开头时原样使用;本地文件路径(绝对或相对)转为 file:// URI;相对路径基于当前工作目录解析为绝对路径,例如 /Users/me/docs/report.pdf 转为 file:///Users/me/docs/report.pdf。
限制:依赖 markitdown MCP 服务器。若 convert_to_markdown 工具不可用,会提示“⚠️ markitdown MCP server is not connected. Please run /markitdown-setup first, then restart Claude Code.”,需先运行 /markitdown-setup 并重启 Claude Code。资料未提供支持的文件格式、转换质量、收费与平台等细节。