validate_workbook
Check a Tableau workbook (.twb/.twbx) for compliance with the official Tableau TWB XSD schema (2026.1). Returns a PASS/FAIL summary with error details to identify structural issues before saving.
Instructions
Validate a workbook against the official Tableau TWB XSD schema (2026.1).
Checks whether the generated XML conforms to Tableau's published schema. Errors are informational — Tableau itself occasionally produces workbooks that deviate slightly from the schema — but recurring errors indicate structural problems worth fixing.
Args: file_path: Path to a .twb or .twbx file to validate. If omitted, validates the currently open workbook (in memory, before save).
Returns: PASS/FAIL summary with error details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |