set_card_image
Set an image on a card visual's hero/callout in Power BI. Accepts local files or URLs and controls image fit for accurate rendering.
Instructions
Set a hero/callout IMAGE on a cardVisual (the new card's image element). imageUrlOrPath = a local file (embedded) or an http(s)/data URL. fit = Fit|Fill|Normal. Verify the render in Desktop.
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_card_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | Fit|Fill|Normal | |
| page | Yes | page name or displayName | |
| visual | Yes | cardVisual name | |
| imageUrlOrPath | Yes | local image file or http(s)/data URL | |
| reportSessionId | Yes |