get_model_schema
Retrieve a semantic model's complete schema, including tables, columns, measures, and relationships. Use it to inspect model structure before making changes.
Instructions
Get the complete schema of a semantic model including tables, columns, measures, and relationships.
This retrieves the model definition in TMSL format and parses the structure.
Args:
workspace: Name or ID of the workspace (optional)
model: Name or ID of the semantic model (optional)
ctx: Context object containing client information
Returns:
A dictionary containing the model schema with tables, columns, measures, and relationships.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| workspace | No |