set_lineage_tag
Assign a stable lineage tag to Power BI model objects (tables, columns, measures, etc.) to preserve identity across renames, schema syncs, and git merges.
Instructions
Set the LineageTag (a stable identity that survives schema sync / git merge across renames) on a model object. objectType = model | table | column | measure | hierarchy | partition | relationship; pass the object's table for column/measure/hierarchy/partition. Needs compatibility level 1540+ (auto-bumped, reported back).
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": {
"sessionId": "<sessionId>",
"objectType": "<objectType>",
"name": "<name>",
"tag": "<tag>"
},
"name": "set_lineage_tag"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | the lineage tag (any stable id, e.g. a GUID) | |
| name | Yes | the object's name | |
| table | No | the object's table (for column/measure/hierarchy/partition) | |
| sessionId | Yes | ||
| objectType | Yes | model | table | column | measure | hierarchy | partition | relationship |