Skip to main content
Glama

process_pdf_post_conversion

Finalize PDFs generated by playwright-mcp by moving files, adding watermarks and QR codes, and cleaning temporary files.

Instructions

πŸ”§ PDF Post-Processing Unified Tool - ⚠️ IMPORTANT: This is a necessary follow-up step for playwright-mcp's browser_pdf_save command! After using playwright-mcp to generate PDF, this tool must be called immediately to complete final processing. Features include: 1) Automatically move PDF from playwright temporary path to target location 2) Uniformly add watermarks and QR codes 3) Clean up temporary files. Workflow: playwright-mcp:browser_pdf_save β†’ doc-ops-mcp:process_pdf_post_conversion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
playwrightPdfPathYesPDF file path generated by playwright-mcp (usually in temporary directory)
targetPathNoTarget PDF file path (optional, will be auto-generated if not provided). If not absolute path, will be resolved relative to OUTPUT_DIR environment variable
addWatermarkNoWhether to add watermark (will be automatically added if WATERMARK_IMAGE environment variable is set)
addQrCodeNoWhether to add QR code (will be automatically added if QR_CODE_IMAGE environment variable is set)
watermarkImageNoWatermark image path (overrides environment variable)
watermarkTextNoWatermark text content
watermarkImageScaleNoWatermark image scale ratio
watermarkImageOpacityNoWatermark image opacity
watermarkImagePositionNoWatermark image positionfullscreen
qrCodePathNoQR code image path (overrides environment variable)
qrScaleNoQR code scale ratio
qrOpacityNoQR code opacity
qrPositionNoQR code positionbottom-center
customTextNoCustom text below QR codeScan QR code for more information

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tele-AI/doc-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server