Export what the creating tools would create, in Fabric's Git format
export_item_definitionsExports what the creating tools would create as files in Fabric's Git format: a . folder per item, views as .sql, a README; items=["pipeline"] adds a data pipeline draft (silver, gold, then a check that fails the run); items=["catalog"] the OneLake catalog descriptions and tags per item with the REST calls (not sent). Requires workspace and source. Returns JSON with the files, the items and what was skipped and why. Changes nothing. Errors: {error, kind, hint}.
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": {
"workspace": "<workspace>",
"source": "<source>"
},
"name": "export_item_definitions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | No | Primary keys replacing the inferred ones. Default: inferred. Example: {"order_items": ["order_id", "line_no"]}. | |
| items | No | Which creating tools to export: create_backend, create_semantic_model, create_views, create_silver_notebook, create_drift_monitor, create_gold_views; or "pipeline", a draft no tool creates (silver, gold, then a check), with the silver and gold notebooks; or "catalog", item descriptions and tags (alone: no files). Default: all creating tools. Example: ["create_backend", "pipeline"]. | |
| names | No | {tool: display name} per exported item. Default: <source>_api, <source>_model, silver_<schema>, drift_monitor_<schema>, gold_<schema>, pipeline_<schema> (its check notebook: <name>_check). Example: {"create_backend": "shop_api"}. | |
| schema | No | Schema in the source. Default "dbo". | dbo |
| source | Yes | Lakehouse, warehouse or SQL database, name or id. | |
| tables | No | Exact table names to include. Default all. | |
| writable | No | true includes create, update and delete mutations in the API; false (default) gives a read-only API. Example: true. | |
| confirmed | No | Relationships the user confirmed, added to the plan. Default none. Example: [{"source": "orders", "source_cols": ["ship_to_id"], "target": "addresses", "target_cols": ["address_id"]}]. | |
| workspace | Yes | Fabric workspace, name or id. | |
| check_rows | No | true: with row counts. Default false. | |
| gold_schema | No | Lakehouse schema for the gold views. Default "gold". Example: "gold". | gold |
| views_schema | No | Schema the T-SQL views go into; created if missing. Default "krusgraph". Example: "reporting". | krusgraph |
| silver_schema | No | Lakehouse schema with the silver tables create_silver_notebook writes. Default "silver". | silver |
| show_personal_data | No | true includes columns named like personal data; false (default) masks or omits them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |