convert_document
Converts a file to DOCX, Markdown, HTML, PDF, or TXT. The new file is saved in the same directory as the original.
Instructions
Converts a specified file to a different format. The new file is saved in the same directory as the original.
Args: file_path: File path (absolute or relative to home directory) to_format: The target format to convert the file into
Returns: Dictionary with new_file_path key containing the absolute path of converted file
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | File path (absolute or relative to home directory) | |
| to_format | Yes | Target format (docx, markdown, html) |