report-generate
Professional Research Report Generation
Overview
Generate structured, professional-grade financial research reports. Follow the conventions used by securities firms and asset managers, and output complete Markdown reports that can be used directly for investment research reference.
Saving and Delivering a PDF
When the user requests a PDF, send the complete Markdown report to write_file
with a .pdf target (prefer artifacts/report.pdf under the active run directory).
The tool renders a real, paginated PDF without requiring system Pango/Cairo.
Check its returned status, path, and bytes_written; include the returned
download_url as a Markdown link labelled with the report's filename. The Web
chat downloads it with authentication and IM channels attach the generated PDF.
A successful write is evidence that the returned path exists; another path's
earlier rejection does not invalidate it. If rendering fails, report that tool
error instead of claiming the PDF was created. Do not write HTML or base64 data
as the content of a .pdf file.