resources_add_report
Write base64-encoded images or binary files into the shared reports/resources folder, returning a src path for HTML tags that works in dashboard and PDF/PNG exports.
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 |