Skip to main content
Convert markdown files to PDF with support for hyperlinks, tables, and local images.

Why this plugin exists

Agents often need to generate professional documents from markdown — reports, itineraries, documentation, or printable versions of travel research. This plugin provides a complete markdown-to-PDF conversion pipeline that runs entirely on the gateway host (no external services required). Workspace path resolution: /workspace/file.md automatically translates to the host’s workspace directory, making it seamless for agents to generate PDFs from their working files.

Installation

Install this tool individually:
Or install all tools from the toolkit:

Configuration

Prerequisites

Config Examples

Basic setup (all defaults):
Letter format with narrow margins:
With header/footer (page numbers):

Usage

Examples:
Path resolution: paths are resolved against the agent’s sandbox workspace (/workspace/... → host workspace directory). Relative paths are resolved from the agent’s current working directory within the workspace.

Markdown Features Supported

Command Reference

Tool name: markdown-pdf

Error Reference

Dependencies

  • marked (^12.0.0): Markdown parser — converts markdown to HTML
  • puppeteer (^22.0.0): Headless Chrome — renders HTML to PDF
Both are installed automatically when the plugin is loaded.