convert
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseConvert to Markdown using the markitdown MCP server.
$ARGUMENTSFollow these rules to build the URI:
- If the argument starts with or
http://orhttps://, use it as-is.data: - If the argument is a local file path (absolute or relative), convert it to a URI.
file://- Resolve relative paths to absolute using the current working directory.
- Example: →
/Users/me/docs/report.pdffile:///Users/me/docs/report.pdf
Then call the tool from the markitdown MCP server with the constructed URI.
convert_to_markdown(uri)Output the resulting Markdown content directly.
If the tool is not available, print:
"⚠️ markitdown MCP server is not connected. Please run /markitdown-setup first, then restart Claude Code."
convert_to_markdown使用markitdown MCP server将转换为Markdown格式。
$ARGUMENTS请遵循以下规则构建URI:
- 如果参数以、
http://或https://开头,直接使用该参数。data: - 如果参数是本地文件路径(绝对路径或相对路径),将其转换为格式的URI。
file://- 使用当前工作目录将相对路径解析为绝对路径。
- 示例:→
/Users/me/docs/report.pdffile:///Users/me/docs/report.pdf
随后使用构建好的URI调用markitdown MCP server中的工具。
convert_to_markdown(uri)直接输出转换后的Markdown内容。
如果工具不可用,请打印:
"⚠️ markitdown MCP server未连接。请先运行/markitdown-setup,然后重启Claude Code。"
convert_to_markdown