scaffold_streamlit_app
Generate a standalone Streamlit Python app that runs an embedded DAX query, displays and filters results, builds charts and pivots, enables downloads, and supports CSV or JSON uploads for offline exploration.
Instructions
Generate a Streamlit Python app for visualizing DAX query results.
Creates a standalone .py file that uses Streamlit to execute the embedded DAX query, display results, filter columns, build charts/pivots, download artifacts, and drag/drop CSV or JSON exports for offline exploration.
Parameters: connection_name: Name of the DAX connection (embedded in the generated app). query: The DAX query to embed in the generated app. title: Page title shown in the Streamlit app. output_path: If provided, write the generated code to this file path. connections_dir: Directory containing named DAX connection YAML files.
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": {
"connection_name": "<connection_name>",
"query": "<query>"
},
"name": "scaffold_streamlit_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| title | No | DAX Query Results | |
| output_path | No | ||
| connection_name | Yes | ||
| connections_dir | No | Connections |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |