Visuals and dashboards both read from saved Explorer queries. Create the query first with
create_explorer_query — an ephemeral run_sql_query result can’t back a chart. See SQL & queries.Available tools
Visuals
A visual belongs to a query.spec.type selects the variant, and the remaining fields depend on that type.
Types: chart, value, table, pie, sankey, treemap, scatter, map, chord.
1
Load the schema
get_skill(name="explorer-visuals") for general guidance, then get_skill(name="explorer-visuals", reference_title="<type>") for that type’s exact JSON schema.2
Create the visual
visual_id and the visual’s URL. Pass an existing visual_id to replace that visual in place instead of adding a new one.get_explorer_query returns a visuals list for a query — use those IDs with get_explorer_visual, delete_explorer_visual, or the visual_id argument of share_explorer_query.
Editing a visual requires edit access to its parent query. Visuals inherit permissions from the query they belong to.
Dashboards
A dashboard is a tree: dashboard → page → section → element.set_dashboard upserts or deletes any node in that tree, and the ID path you pass locates the target.
The rule: on create, the IDs are the parent path and the target’s own ID is absent. On update, the IDs include the target’s own ID.
config.type covers the nine visualization types above plus layout and control elements: markdown, spacer, variable-select, switch, date-range, and radio-group. Call get_skill(name="dashboard-design") for the build order and element catalog, then get_skill(name="dashboard-design", reference_title="<config.type>") for a type’s full schema.
Reading a dashboard
read_dashboard returns the targeted node plus summaries of its immediate children — never a full subtree.
Deleting
delete_dashboard takes a dashboard_id only and removes the whole dashboard. To remove a page, section, or element, call set_dashboard with spec: null and that node’s ID path.
Sharing
Related resources
SQL & queries
Create the saved queries that back your charts
Skills
Fetch the exact spec schema for every visual and element type
Dashboards in the App
Build visuals and dashboards by hand in the App
Terminal dashboards
Start from an analyst-built baseline