convert

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

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