plan_conversion
Determines the optimal workflow for document format conversions by generating a step-by-step plan. Ensures proper execution for tasks like MD to PDF or DOCX to HTML conversions, including handling multi-step processes and integrations for PDF generation and post-processing.
Instructions
🎯 MANDATORY FIRST STEP - Smart Document Conversion Planner - ⚠️ CRITICAL: This tool MUST be executed BEFORE any document conversion operation! When users request any format conversion (e.g., 'convert MD to PDF', 'DOCX to HTML'), you MUST call this tool first to get the optimal conversion plan, then follow the plan's steps exactly. This ensures proper conversion workflow and handles complex multi-step conversions. For PDF conversions, note that playwright-mcp integration is required for final PDF generation, followed by process_pdf_post_conversion for watermarks/QR codes. Supports all format conversion path planning.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
includeImages | No | Whether to include images | |
preserveStyles | No | Whether to preserve style formatting | |
quality | No | Conversion quality requirements | balanced |
sourceFile | No | Source file path (optional, used to generate specific conversion parameters) | |
sourceFormat | Yes | Source file format (e.g.: pdf, docx, html, markdown, md, txt) | |
targetFormat | Yes | Target file format (e.g.: pdf, docx, html, markdown, md, txt) | |
theme | No | Conversion theme (applicable to HTML/DOCX output) | github |