Get View Data
Retrieves data in comma separated value (CSV) format for the specified view in a Tableau workbook.
APIs called
- Query View Data
- Get View (if applicable tool scoping is enabled)
Required arguments
viewId
The ID of the view, potentially retrieved by the List Views or Get Workbook tool.
Example: 9460abfe-a6b2-49d1-b998-39e1ebcc55ce
Optional arguments
viewFilters
Map of view filter field names to values. vf_ prefix for field names is optional and will be added
automatically when building the view filter query.
Example: { "year": "2017" }
Response behavior
The tool returns one of two result shapes:
MCP_S3_BUCKETunset (default): returns the CSV as a single JSON-encoded text string (JSON.stringify(csv)), with newlines escaped as\n.MCP_S3_BUCKETset: returns aresource_linkwith a short-lived presigned URL to the CSV file in S3, instead of inlining the data.
Example result (default)
"Country/Region,State/Province,Profit Ratio,Latitude (generated),Longitude (generated)\nCanada,Alberta,19.5%,53.41,-114.42\nCanada,British Columbia,4.2%,54.9464,-125.1024\nCanada,Manitoba,8.2%,55.0085,-97.1771\n"
Example result (S3 mode)
{
"type": "resource_link",
"uri": "https://example-bucket.s3.amazonaws.com/...presigned...",
"name": "view-data.csv",
"mimeType": "text/csv",
"description": "View data (CSV) stored in S3. This is a short-lived presigned URL."
}