KosmoKrator

analytics

Tableau CLI for AI Agents

Use the Tableau CLI from KosmoKrator to call Tableau tools headlessly, return JSON, inspect schemas, and automate workflows from coding agents, scripts, and CI.

6 functions 6 read 0 write Bearer token auth

Tableau CLI Setup

Tableau can be configured headlessly with `kosmokrator integrations:configure tableau`.

# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash

# Configure and verify this integration.
kosmokrator integrations:configure tableau --set access_token="$TABLEAU_ACCESS_TOKEN" --set site_id="$TABLEAU_SITE_ID" --enable --read allow --write ask --json
kosmokrator integrations:doctor tableau --json
kosmokrator integrations:status --json

Credentials

Authentication type: Bearer token bearer_token. Configure credentials once, then use the same stored profile from scripts, coding CLIs, Lua code mode, and the MCP gateway.

KeyEnv varTypeRequiredLabel
access_token TABLEAU_ACCESS_TOKEN Secret secret yes Access Token
site_id TABLEAU_SITE_ID Text string yes Site ID
base_url TABLEAU_BASE_URL URL url no Server URL

Call Tableau Headlessly

Use the generic call form when another coding CLI or script needs a stable universal interface.

kosmo integrations:call tableau.tableau_list_workbooks '{
  "page_size": 1,
  "page_number": 1
}' --json

Use the provider shortcut form for shorter human-facing commands.

kosmo integrations:tableau tableau_list_workbooks '{
  "page_size": 1,
  "page_number": 1
}' --json

Agent Discovery Commands

These commands return structured output for coding agents that need to inspect capabilities before choosing a function.

kosmo integrations:docs tableau --json
kosmo integrations:docs tableau.tableau_list_workbooks --json
kosmo integrations:schema tableau.tableau_list_workbooks --json
kosmo integrations:search "Tableau" --json
kosmo integrations:list --json

All CLI Functions

Every function below can be called headlessly. The generic form is stable across all integrations; the provider shortcut is shorter but specific to Tableau.

tableau.tableau_list_workbooks

Read read

List workbooks available on the Tableau site. Returns workbook names, IDs, project assignments, and owners. Use the workbook IDs with tableau_get_workbook for full details.

Parameters
page_size, page_number

Generic CLI call

kosmo integrations:call tableau.tableau_list_workbooks '{"page_size":1,"page_number":1}' --json

Provider shortcut

kosmo integrations:tableau tableau_list_workbooks '{"page_size":1,"page_number":1}' --json

tableau.tableau_get_workbook

Read read

Get detailed information about a specific Tableau workbook, including its views, connections, and permissions. Requires the workbook LUID.

Parameters
workbook_id

Generic CLI call

kosmo integrations:call tableau.tableau_get_workbook '{"workbook_id":"example_workbook_id"}' --json

Provider shortcut

kosmo integrations:tableau tableau_get_workbook '{"workbook_id":"example_workbook_id"}' --json

tableau.tableau_list_views

Read read

List views (dashboards and sheets) available on the Tableau site. Returns view names, IDs, and associated workbooks. Use view IDs with tableau_get_view for full details.

Parameters
page_size, page_number

Generic CLI call

kosmo integrations:call tableau.tableau_list_views '{"page_size":1,"page_number":1}' --json

Provider shortcut

kosmo integrations:tableau tableau_list_views '{"page_size":1,"page_number":1}' --json

tableau.tableau_get_view

Read read

Get detailed information about a specific Tableau view (dashboard or sheet), including its workbook, owner, and usage stats. Requires the view LUID.

Parameters
view_id

Generic CLI call

kosmo integrations:call tableau.tableau_get_view '{"view_id":"example_view_id"}' --json

Provider shortcut

kosmo integrations:tableau tableau_get_view '{"view_id":"example_view_id"}' --json

tableau.tableau_list_projects

Read read

List projects on the Tableau site. Projects organize workbooks and data sources. Returns project names, IDs, descriptions, and parent project info.

Parameters
page_size, page_number

Generic CLI call

kosmo integrations:call tableau.tableau_list_projects '{"page_size":1,"page_number":1}' --json

Provider shortcut

kosmo integrations:tableau tableau_list_projects '{"page_size":1,"page_number":1}' --json

tableau.tableau_get_current_user

Read read

Get information about the currently authenticated Tableau user, including name, email, site role, and auth settings.

Parameters
none

Generic CLI call

kosmo integrations:call tableau.tableau_get_current_user '{}' --json

Provider shortcut

kosmo integrations:tableau tableau_get_current_user '{}' --json

Function Schemas

Use these parameter tables when building CLI payloads without calling integrations:schema first.

tableau.tableau_list_workbooks

List workbooks available on the Tableau site. Returns workbook names, IDs, project assignments, and owners. Use the workbook IDs with tableau_get_workbook for full details.

Operation
Read read
Schema command
kosmo integrations:schema tableau.tableau_list_workbooks --json
ParameterTypeRequiredDescription
page_size integer no Number of workbooks per page (default: 100, max: 1000).
page_number integer no Page number for pagination (1-based, default: 1).

tableau.tableau_get_workbook

Get detailed information about a specific Tableau workbook, including its views, connections, and permissions. Requires the workbook LUID.

Operation
Read read
Schema command
kosmo integrations:schema tableau.tableau_get_workbook --json
ParameterTypeRequiredDescription
workbook_id string yes The workbook LUID (unique identifier). Obtain from tableau_list_workbooks.

tableau.tableau_list_views

List views (dashboards and sheets) available on the Tableau site. Returns view names, IDs, and associated workbooks. Use view IDs with tableau_get_view for full details.

Operation
Read read
Schema command
kosmo integrations:schema tableau.tableau_list_views --json
ParameterTypeRequiredDescription
page_size integer no Number of views per page (default: 100, max: 1000).
page_number integer no Page number for pagination (1-based, default: 1).

tableau.tableau_get_view

Get detailed information about a specific Tableau view (dashboard or sheet), including its workbook, owner, and usage stats. Requires the view LUID.

Operation
Read read
Schema command
kosmo integrations:schema tableau.tableau_get_view --json
ParameterTypeRequiredDescription
view_id string yes The view LUID (unique identifier). Obtain from tableau_list_views.

tableau.tableau_list_projects

List projects on the Tableau site. Projects organize workbooks and data sources. Returns project names, IDs, descriptions, and parent project info.

Operation
Read read
Schema command
kosmo integrations:schema tableau.tableau_list_projects --json
ParameterTypeRequiredDescription
page_size integer no Number of projects per page (default: 100, max: 1000).
page_number integer no Page number for pagination (1-based, default: 1).

tableau.tableau_get_current_user

Get information about the currently authenticated Tableau user, including name, email, site role, and auth settings.

Operation
Read read
Schema command
kosmo integrations:schema tableau.tableau_get_current_user --json
ParameterTypeRequiredDescription
No parameters.

Permissions

Headless calls still follow the integration read/write permission policy. Configure read/write defaults with integrations:configure. Add --force only for trusted automation that should bypass that policy.