| description | Convert files/URLs to Markdown via MarkItDown |
|---|---|
| agent | build |
Convert source content into Markdown using MarkItDown CLI (fallback when MCP is unavailable).
/to-markdown <input-path-or-url> [output]
- Parse
$ARGUMENTSas:- first token: input path or URL
- optional second token: output path
- If input is a directory:
- do not call
Read Fileon the directory path - require output to be a directory path and convert supported files recursively
- do not call
- Run:
bash /home/vscode/.opencode/skills/markitdown-converter/scripts/convert.sh <input> [output]- If output path is provided, report the saved path(s).
- If output path is omitted, return the generated Markdown in the response.