export_document
Convert Markdown and DOCX documents to each other's format, preserving structure and comments. Raises clear errors for unsupported conversions.
Instructions
Convert the document to another supported format ('markdown'|'docx').
Conversion goes through the normalized model: markdown->docx builds a fresh Word file (headings, lists, tables, comments); docx->markdown serializes parsed blocks back to Markdown. Unsupported pairs raise a clear export_error listing supported conversions.
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": {
"path": "<path>",
"target_format": "<target_format>"
},
"name": "export_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| title | No | ||
| output_path | No | ||
| target_format | Yes | ||
| include_comments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||