Skip to content

Generate PDF Tool

This tool turns content from a conversation into a formatted, downloadable PDF report. It is what powers the out-of-the-box Generate PDF from a Chat agent.

The agent writes a short program that lays out the report (headings, paragraphs, tables, lists), and the tool renders it to a professional PDF and saves it as a downloadable asset. The rendering runs in a sandbox with resource limits (30-second timeout, capped memory), so it is safe to expose to an agent.

Add this tool to an agent that should produce a shareable document at the end of a task: a summary of an analysis, a report built from query results, or a written record of a conversation.

ParameterRequiredTypeSuggested scopeWhat it does
codeYesstringAgent determinedThe layout program the agent generates. It builds the report sections; the tool renders them. You do not write this by hand.
titleYesstringAgent determinedA short noun phrase (3–8 words) used as the in-PDF title and the download filename. Plain letters, numbers, and spaces only.

See Configuring tool parameters for what the scope column means.

The tool saves the rendered PDF as a downloadable asset and returns its asset ID. In a chat surface, the PDF appears as a downloadable attachment in the agent’s response.

  • Maximum rendered PDF size: 20 MB.
  • Up to 200 sections per document.
  • Rendering times out after 30 seconds.