set_visual_property
Set any Power BI visual formatting property via formatting ids (e.g., labels/show). Supports text, number, bool, color, or raw values for report objects and containers.
Instructions
Set ANY visual formatting property (the universal escape hatch). objectName/propertyName are Power BI formatting ids e.g. labels/show, legend/position, categoryAxis/showAxisTitle, valueAxis/start, dataPoint/fill. kind = text|number|bool|color|raw. target = objects (data formatting) or vcObjects (container: title, background, border).
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>",
"pageName": "<pageName>",
"visualName": "<visualName>",
"objectName": "<objectName>",
"propertyName": "<propertyName>",
"value": "<value>"
},
"name": "set_visual_property"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | text|number|bool|color|raw | text |
| value | Yes | the value, e.g. true, Top, 12, #16365C | |
| target | No | objects|vcObjects | objects |
| pageName | Yes | ||
| objectName | Yes | formatting object id, e.g. labels, legend, categoryAxis, dataPoint, title | |
| visualName | Yes | ||
| propertyName | Yes | property id, e.g. show, position, fontSize, color, labelDisplayUnits | |
| reportSessionId | Yes |