change_visual_type
Change a visual's type while preserving data bindings, position, and formatting. Automatically modernizes deprecated types and remaps data roles.
Instructions
Change a visual's TYPE preserving its data bindings, position and applicable formatting. A deprecated target is modernised automatically (card -> cardVisual, table -> tableEx, matrix -> pivotTable). Projection roles are remapped through the curated data-role registry (list_visual_data_roles): same-named roles carry straight over, the rest fall to the first compatible role by kind, and per-role caps drop overflow (reported, never silent). Data-formatting cards the new type does not declare are dropped and reported; chrome (title/background/border) always survives. Sort is cleared - re-apply with set_visual_sort.
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>",
"newType": "<newType>"
},
"name": "change_visual_type"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | page name or displayName | |
| visual | Yes | visual name | |
| newType | Yes | the new visualType, e.g. lineChart | clusteredBarChart | tableEx (or a deprecated alias: card/table/matrix) | |
| reportSessionId | Yes |