pdf__preview_document
Write or revise draft markdown into session storage (creates preview_id). Agent-only — not a suggestion button. Use when the user asks to create/write/edit document content. For showing an existing draft use get_preview (Preview PDF). Never put emit_display chrome into content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Document title (real topic title, not 'Preview') | |
| content | Yes | Full substantive markdown for the PDF pages (use --- between pages; each page needs a heading). Must be the document the user requested — never UI phrases like 'Here is a preview of your PDF document.' | |
| update_preview_id | No | When the user asks to adjust an existing preview, set this to that preview's preview_id. Omit to create a new preview. | |
| notification_message | No | Short user-facing sentence for this action if the follow-up reply fails. Plain text only; do not mention template syntax or variable names. |