Skip to content

create_dashboard

Canonical path for an explicit dashboard request or model-derived visual, including requests to chart this run. Do not use it to create a second HTML display for an ordinary show request or duplicate an already-rendered MCP App result. For an ordinary standalone table view, use create_bsheet_output_view. Pick one source; a field that belongs to the other source is rejected.

changes state

Name Type Required Default Description
source object Yes — Dashboard source: run renders a chart or dashboard_spec from successful run output; repo validates or publishes a standalone HTML package from a repo path or inline html.
model_name string Yes — Name of the Bridge Town model.
dashboard_name string Yes — Unique name for this dashboard.
model_run_id string No None UUID of a successful run. source=run: required for the single-chart form. source=repo: the authorized run that produced inline html; required with html and unavailable with path.
description string No None Optional description displayed below the dashboard title.
chart_type string No None source=run only: single-chart type; omit when dashboard_spec is supplied.
output_key string No None source=run only: named output for the single-chart form.
dashboard_spec object No None source=run only: versioned composition of up to eight panels bound to authorized retained run tables. Each panel declares its run, output, JSON pointer, column mapping, unit, and existing chart type. Histogram mappings name a numeric values_column, explicit increasing bin_edges, and count or density normalization. Heatmap mappings name row_column, column_column, and value_column; duplicate cells are rejected and missing values remain distinct from zero.
subtitle string No '' source=run only: optional subtitle displayed below the title.
currency string No None source=run only: optional ISO 4217 currency override; omitted values inherit the model.
locale string No None source=run only: optional display-locale override; omitted values inherit the model.
path string No None source=repo only: repo path to the committed HTML entrypoint. Provide exactly one of path or html.
html string No None source=repo only: inline standalone HTML tied to model_run_id. Provide exactly one of html or path; inline HTML runs through the same package validation as repo HTML.
branch string No None source=repo only: branch to read; defaults to the model default.
manifest_path string No None source=repo only: optional repo path to a JSON package manifest.
data_paths list of string No None source=repo only: optional repo paths for package data snapshots.
design_skill_id string No None source=repo only: optional public or caller-owned design context to snapshot.
publish boolean No False source=repo only: publish immediately; false saves a draft revision.
dry_run boolean No False source=repo only: validate without writing; cannot be combined with publish.
workspace_id string No None

Returns a structured object. Top-level fields:

  • dashboard_id (string)
  • dashboard_name (string)
  • model (string)
  • chart_type (string)
  • model_run_id (string)
  • created (boolean)

See the response example below for the full payload shape.

{
"name": "create_dashboard",
"arguments": {
"source": "run",
"model_name": "forecasts",
"dashboard_name": "Q4 Revenue",
"chart_type": "bar",
"model_run_id": "66666666-6666-6666-6666-666666666666",
"output_key": "quarterly_revenue.json",
"currency": "USD"
}
}
{
"dashboard_id": "77777777-7777-7777-7777-777777777777",
"dashboard_name": "Q4 Revenue",
"model": "forecasts",
"chart_type": "bar",
"model_run_id": "66666666-6666-6666-6666-666666666666",
"created": true
}

Publishing custom HTML (source=“repo”)

Section titled “Publishing custom HTML (source=“repo”)”

source: "repo" validates or publishes a standalone HTML dashboard package as a new immutable revision. Pass exactly one of path (an HTML entrypoint committed to the model repo) or html plus model_run_id (inline HTML from an authorized successful run). dry_run: true runs the same validation with no writes; publish: true publishes instead of saving a draft revision. The source: "run" fields (chart_type, output_key, dashboard_spec, subtitle, currency, locale) are rejected here, and the repo fields are rejected for source: "run".

{
"source": "repo",
"model_name": "forecasts",
"dashboard_name": "Run Waterfall",
"html": "<html><body><h1>Run Waterfall</h1></body></html>",
"model_run_id": "66666666-6666-6666-6666-666666666666",
"dry_run": true
}

A dry run returns the validation receipt (validation_status, validation_findings) with published_at: null and no open URL.

  • Module: Dashboards
  • Requires an authenticated Bridge Town session (OAuth) or an API token.