Generate and upload PDF
generate_and_upload_pdfRender HTML, Markdown, or plain text into a PDF and upload it to a Unity Catalog Volume path. Returns the destination path, file size, page count, and SHA-256.
Instructions
Render HTML (or Markdown / plain text, converted to escaped HTML) to a PDF and upload it to a Unity Catalog Volume path ending in .pdf. Remote URLs, file: links and relative resources in the HTML are blocked (only inline data: URIs are used). Returns the path, size in bytes, page count and SHA-256. Requires the optional xhtml2pdf dependency (pip install "dbx-mcp[pdf]").
Safety classification: depends on input (DESTRUCTIVE, WRITE).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | No | HTML to render (external resources are never fetched). | |
| text | No | Plain text to render instead of html. | |
| title | No | Optional document title (used for markdown/text/HTML fragments). | |
| confirm | No | Set to true ONLY after the user has reviewed the plan returned by a previous call with status 'confirmation_required'. Required for destructive/security-sensitive actions. | |
| dry_run | No | If true, validate and return the planned change without executing it. | |
| markdown | No | Markdown (headings, lists, code blocks, bold/italic) to render instead of html. | |
| overwrite | No | Replace an existing file (DESTRUCTIVE; requires confirm). | |
| destination_path | Yes | Target file in a Unity Catalog Volume, e.g. /Volumes/main/reports/files/q3.pdf |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| page | No | ||
| plan | No | ||
| tool | Yes | ||
| action | No | ||
| safety | No | ||
| status | No | success | |
| summary | Yes | ||
| warnings | No | ||
| next_steps | No | Suggested follow-up calls. | |
| request_id | No |