Write a PDF and publish it
publish_documentTurns Markdown into a clean, well-formatted PDF on the server and returns a permanent public link. Prefer this over upload_file for documents you write (guides, checklists, lead magnets, reports): only the text is sent, so it works for long, multi-page documents. Supports headings, paragraphs, bold/italic, links, bullet and numbered lists, checklists, tables, quotes, code blocks and horizontal rules. Pro plan: pass file_id to update an existing document while keeping the same link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Pro plan only: tags for the file, e.g. ['invoice', 'client-dupont']. | |
| title | Yes | Document title, shown at the top of the first page. | |
| folder | No | Pro plan only: folder path to file it in, e.g. 'Clients/Dupont' (missing folders are created). Omit to keep it at the top level. | |
| file_id | No | Pro plan only: existing file to replace (the link stays the same). | |
| markdown | Yes | The document body in Markdown (do not repeat the title as a heading). | |
| subtitle | No | Optional subtitle under the title. | |
| file_name | No | File name, e.g. 'claude-business-ideas.pdf'. Defaults to the title. | |
| accent_color | No | Accent color for the title and main headings, as #RRGGBB. |