write_pdf
Create a PDF at path from Markdown content, or write an edited copy of the PDF at path to a new outputPath with ordered content operations: delete {pageIndexes:[0,-1]}, insert {pageIndex:1,markdown:"..."} or {pageIndex:1,sourcePdfPath:"..."} (negative indices count from the end). Renders CSS, tables, Unicode and local images in sandboxed Chromium; options.css and options.pdf_options (format, landscape, margin, header/footer) set the page, default A4. Never overwrites an existing file; remote assets and scripts are refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| pages | No | ||
| format | No | ||
| margin | No | ||
| content | No | ||
| options | No | ||
| deviceId | No | Computer name or id from list_devices. Optional with one computer online or a default set. | |
| fontPath | No | ||
| fontSize | No | ||
| pageSize | No | ||
| outputPath | No | ||
| workSessionId | No | Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work. |