Markdown to pdf
markdown_to_pdfConvert Markdown (headings, GFM tables, fenced code blocks, lists, links) into a styled print-ready base64 PDF via hermetic sandboxed headless Chrome. $0.003 per call over x402 (USDC on Arc, Base or Solana, or XNT on X1). Call once without payment for terms, then call again with payment.
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": "<markdown>"
},
"name": "markdown_to_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Optional typography theme: clean (default), editorial, or compact. | |
| title | No | Optional document title. | |
| format | No | Optional paper format: A4 (default), Letter, Legal, Tabloid, A3, or A5. | |
| margin | No | Optional margin preset: none, compact, normal (default), or wide. | |
| payment | No | signed x402 payment payload (PAYMENT-SIGNATURE). | |
| markdown | Yes | Markdown document to render into PDF (up to 256 KB). | |
| landscape | No | Optional landscape orientation. |