resources.add_report
Add binary report assets to the shared resources folder. Provide filename and base64 bytes to receive a src path for embedding in report HTML, with correct resolution in dashboard and PDF/PNG export.
Instructions
Write an image or other binary resource into the shared reports/resources/ folder. Returns { filename, size, src, url } — embed the report's / tags with src exactly as given (e.g. <img src="resources/chart.png">); it is the only form that resolves correctly both in the dashboard viewer and in PDF/PNG export. Do not use url inside report HTML — it only works in the dashboard. Bytes are passed base64-encoded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Requested filename with extension | |
| bytes_base64 | Yes | Base64-encoded file bytes |