distill_template
Converts a Power BI report page into a reusable template kit with sanitized placeholders and verbatim visual blocks, without modifying the source report.
Instructions
Chưng cất 1 trang báo cáo PBIR thành template kit tái dùng (blueprint.md + blocks/*.json verbatim mỗi loại visual + _page.json + kit.json).
report_path: file .pbip, folder *.Report, hoặc folder definition.
page: GUID trang hoặc displayName chính xác.
out_dir: thư mục ghi kit — mặc định nên là
templates/trong THƯ MỤC DỰ ÁN (ngoài repo).sanitize: MẶC ĐỊNH True — thay tên bảng/cột/nhãn thật bằng placeholder TEMPLATE_*. Đặt False chỉ khi user nói RÕ kit này dùng nội bộ và chấp nhận giữ tên nghiệp vụ thật. Mặc định phải an toàn: kit từng lọt tên measure thật của khách ra bản public vì an toàn phụ thuộc vào việc người gọi nhớ bật cờ. CHỈ ĐỌC — không sửa báo cáo nguồn.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"report_path": "<report_path>",
"page": "<page>",
"out_dir": "<out_dir>"
},
"name": "distill_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| out_dir | Yes | ||
| kit_name | No | ||
| sanitize | No | ||
| report_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |