add_embedded_image
Read a real image file from disk, base64-encode it, and store it as an embedded image for Power BI Report Builder reports. Validates MIME type against the file's magic bytes.
Instructions
Read a real image file off disk, base64-encode it, and store it under . Reference it later with image_source='Embedded' + value=. Supported MIME types: image/bmp, image/gif, image/jpeg, image/png, image/x-png. The file's magic bytes are sniffed and must match mime_type — claiming PNG bytes as image/jpeg is rejected here rather than letting Report Builder fail at preview time.
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": {
"path": "<path>",
"name": "<name>",
"mime_type": "<mime_type>",
"image_path": "<image_path>"
},
"name": "add_embedded_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes | ||
| mime_type | Yes | ||
| image_path | Yes | Filesystem path to the source image. |