sourceFile
(string, optional) - Source file path (for generating specific conversion parameters)
How to use it
sourceFile is exposed by the Doc Ops MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the sourceFile tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Doc Ops MCP
npm install -g doc-ops-mcpOther tools in Doc Ops MCP (39)
🎨 PDF Watermark Addition Tool - Add image or text watermarks to PDF documents.
(boolean, optional) - Whether to add QR code, defaults to false
(boolean, optional) - Whether to add watermark, defaults to false
(string, optional) - Chinese font, defaults to Microsoft YaHei
(string, required) - Content to write
Smart document conversion
Convert DOCX to PDF with automatic watermark addition (if configured).
Convert HTML to Markdown.
Convert Markdown to DOCX.
Convert Markdown to HTML.
Convert Markdown to PDF with automatic watermark addition (if configured).
(string, required) - DOCX file path
(string, optional) - File encoding, defaults to utf-8
(boolean, optional) - Extract document metadata, defaults to false
(string, required) - Document path to read
(string, required) - HTML file path
(boolean, optional) - Whether to include images, defaults to true
(boolean, optional) - Include table of contents, defaults to false
(string, required) - Input file path
(string, required) - Markdown file path
(string, optional) - Output file path (auto-generated if not provided)
(string, required) - PDF file path
Conversion planner
(string, required) - Generated PDF file path
(boolean, optional) - Preserve formatting (HTML output), defaults to false
(boolean, optional) - Whether to preserve style formatting, defaults to true
Parameters:
(string, optional) - QR code image path
(string, optional) - Conversion quality requirement (fast, balanced, high), defaults to balanced
Read document content
(string, required) - Source file format (pdf, docx, html, markdown, md, txt, doc)
(string, required) - Target file format (pdf, docx, html, markdown, md, txt, doc)
(string, optional) - Target PDF file path (auto-generated if not provided)
(string, optional) - Theme style, defaults to "github"
(boolean, optional) - Use built-in Playwright for PDF conversion, defaults to false
(string, optional) - Watermark image path
(number, optional) - Image scale ratio, defaults to 0.25
(string, optional) - Watermark text content
Write document content