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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>",
"to_format": "<to_format>"
},
"name": "convert_document"
}
}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) |