create_dashboard
Build or update a Streamlit dashboard from Python code, with automatic dependency installation and app reloading.
Instructions
Creates or updates the Streamlit dashboard with the given Python code.
Automatically installs missing dependencies and starts/reloads the app.
IMPORTANT: The variable DB_PATH is automatically injected at the top of
your code — always connect to the database using:
conn = sqlite3.connect(DB_PATH)
Never hardcode a database path string yourself.
Args:
code: Full Python source code for the Streamlit dashboard
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": {
"code": "<code>"
},
"name": "create_dashboard"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |