Get Custom View Data
Retrieves data in comma separated value (CSV) format for the specified custom view in a Tableau workbook.
APIs called
- Get Custom View Data
- Get Custom View and Get View (if applicable tool scoping is enabled)
Required arguments
customViewId
The ID of the custom view, potentially retrieved by the List Custom Views tool.
Example: 1db3a121-51ac-4435-b533-3053e698dfc8
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,Ontario,26.8%,50.94,-84.75\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."
}