convert_document
Convert documents between formats like Markdown, DOCX, HTML, LaTeX, EPUB, ODT, and RTF using Pandoc. Specify input and output paths; formats are auto-detected if not provided.
Instructions
Convert between document formats using Pandoc.
Args: input_path: Path to input file output_path: Path for output file from_format: Optional input format (auto-detected if not specified) to_format: Optional output format (auto-detected if not specified)
Returns: Output path or error message
Supported formats: markdown, docx, html, latex, epub, odt, rtf, and more.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_format | No | ||
| input_path | Yes | ||
| from_format | No | ||
| output_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |