set_image_source
Replace the image source of an existing Power BI image visual with a local file, HTTP(s), or data URL while preserving current scaling.
Instructions
Re-source an EXISTING image visual: rewrite its sourceFile to a new image (add_image only creates new ones). imageUrlOrPath = a local file (embedded) or an http(s)/data URL. Preserves the visual's current scaling.
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": {
"reportSessionId": "<reportSessionId>",
"page": "<page>",
"visual": "<visual>",
"imageUrlOrPath": "<imageUrlOrPath>"
},
"name": "set_image_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| visual | Yes | the image visual's name | |
| imageUrlOrPath | Yes | local image file or http(s)/data URL | |
| reportSessionId | Yes |