add_visual
Insert a new visual into a specific sheet of a QuickSight analysis. The analysis definition is modified with an automatic backup.
Instructions
Add a visual to a sheet in a QuickSight analysis.
WARNING: This modifies the analysis definition. A backup is automatically created before making changes.
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": {
"analysis_id": "<analysis_id>",
"sheet_id": "<sheet_id>",
"visual_definition": "<visual_definition>"
},
"name": "add_visual"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sheet_id | Yes | The target sheet ID to add the visual to. | |
| analysis_id | Yes | The QuickSight analysis ID. | |
| visual_definition | Yes | JSON string of the visual definition. Must be a dict with one key being the visual type (e.g., {"KPIVisual": {...}}, {"BarChartVisual": {...}}). Get examples from get_visual_definition on existing visuals. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||