generate_fabric_code
Generate Fabric-specific PySpark code for lakehouse operations, including reading, writing, merging Delta tables, and monitoring performance. Use it to get ready-to-run code for Microsoft Fabric.
Instructions
Generate Fabric-specific PySpark code for lakehouse operations.
Args:
operation: Type of operation ('read_lakehouse', 'write_lakehouse', 'merge_delta', 'performance_monitor')
lakehouse_name: Name of the lakehouse
table_name: Name of the source table
target_table: Name of the target table (for write/merge operations)
ctx: Context object containing client information
Returns:
A string containing the generated Fabric-specific PySpark code.
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": {
"operation": "<operation>"
},
"name": "generate_fabric_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | ||
| table_name | No | ||
| target_table | No | ||
| lakehouse_name | No |