distill_model_schema
Extract the schema of an open Power BI Desktop model—tables, columns, relationships, and measures—into a Markdown blueprint with a Mermaid ERD for AI agents writing DAX and designing reports.
Instructions
Trích xuất cấu trúc mô hình dữ liệu (bảng, cột, quan hệ, measure) của báo cáo Power BI Desktop đang mở thành tài liệu Markdown blueprint (kèm sơ đồ Mermaid ERD) để Agent tham chiếu khi viết DAX / thiết kế báo cáo.
port / model_id: để trống sẽ tự dò (nếu chỉ có 1 báo cáo đang mở).
output_filename: tên file .md (mặc định 'distilled_model_.md').
output_dir: thư mục ghi; mặc định env POWERBI_DISTILL_DIR hoặc <thư mục dự án>/distilled/. LƯU Ý: schema model có thể nhạy cảm (tên bảng/cột/công thức nghiệp vụ) — đừng ghi vào repo public.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | ||
| model_id | No | ||
| output_dir | No | ||
| output_filename | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |