generate_pdf
Turn a report or document you write as HTML into a PDF and get a link to it (a quote, job report, statement, summary). This is the in-app copilot's generate_pdf: when the workspace's instructions or an action's answer say to call generate_pdf, this is it. Write the BODY as clean semantic HTML in html (h1/h2/h3, p, tables, lists) and it gets a branded letterhead with the title and today's date; or pass a COMPLETE document (……) to control the whole layout (a customer's own letterhead, page size, colours) — it is used as-is, with no letterhead added. No . The answer has the link, a summary of what was rendered and a picture of page 1: look at the picture and fix the HTML before you tell the user it's ready. The link is public — anyone with it can open the file. The PDF isn't put on any record: to attach it, use the workspace's own action for that, or propose_write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Either the report BODY as semantic HTML (gets the branded letterhead), or a COMPLETE <html> document (used as-is, no letterhead). No <script>. | |
| brand | No | Optional letterhead branding: { company_name, accent_color (hex like #2563eb), logo_url }. Fill from the org's known details; omit any you don't know. | |
| title | Yes | Document title — shown at the top of the letterhead and used for the filename (e.g. 'March Revenue Summary'). | |
| filename | No | Optional download filename WITHOUT extension (defaults to the title). |