remarkable_markdown_to_pdf
Render Markdown text into a paginated A4 PDF and upload it directly to your reMarkable tablet, eliminating the need to create a local file first.
Instructions
Render Markdown text as a PDF and upload it to the reMarkable tablet. Use this when the user wants notes, reports, summaries, or other Markdown content written back to the tablet without first creating a local file. Headings, lists, tables, links, blockquotes, and code blocks are rendered into a paginated A4 PDF. Raw HTML is escaped and image assets are omitted so rendering never reads local files or fetches remote content.
Works in all three transports:
Cloud: sync upload with parent_folder and document_name
SSH: filesystem upload with parent_folder and document_name
USB web: upload whose multipart filename is document_name + ".pdf"; parent_folder is ignored and the tablet web service chooses the folder.
Requires write mode (the default; disabled with --read-only).
markdown: Markdown source text. Must not be empty.
document_name: Display name on the tablet (default: "Markdown").
parent_folder: Destination folder (default: root "/"). USB web ignores this parameter because its upload endpoint has no folder argument.
defer_restart: SSH only. When True, skip the xochitl restart and call remarkable_refresh() once after the batch. Forwarded exactly like remarkable_upload; ignored in cloud and USB web modes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | ||
| defer_restart | No | ||
| document_name | No | Markdown | |
| parent_folder | No | / |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |