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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"bytes_base64": "<bytes_base64>"
},
"name": "resources_add_report"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Requested filename with extension | |
| bytes_base64 | Yes | Base64-encoded file bytes |