convert_markdown
Convert Markdown files to Word or PDF documents, optionally applying a .dotx template for consistent styling.
Instructions
Convert markdown to Word/PDF with optional .dotx template.
This tool converts markdown files to professional documents using python-docx. You can optionally provide a .dotx template file for consistent styling.
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": {
"markdown_path": "<markdown_path>",
"output_path": "<output_path>"
},
"name": "convert_markdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_path | Yes | Base path for output (without extension) | |
| markdown_path | Yes | Path to input .md file | |
| output_format | No | Output format - "docx" (Word), "pdf", or "both" | docx |
| template_path | No | Optional path to .dotx template file for styling |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |