looker-add-dashboard-element

“looker-add-dashboard-element” generates a Looker look in the users personal folder in Looker

About

The looker-add-dashboard-element creates a dashboard element in the given dashboard.

It’s compatible with the following sources:

looker-add-dashboard-element takes eleven parameters:

  1. the model
  2. the explore
  3. the fields list
  4. an optional set of filters
  5. an optional set of pivots
  6. an optional set of sorts
  7. an optional limit
  8. an optional tz
  9. an optional vis_config
  10. the title
  11. the dashboard_id

Example

tools:
    add_dashboard_element:
        kind: looker-add-dashboard-element
        source: looker-source
        description: |
          add_dashboard_element Tool

          This tool creates a new tile in a Looker dashboard using
          the query parameters and the vis_config specified.

          Most of the parameters are the same as the query_url
          tool. In addition, there is a title that may be provided.
          The dashboard_id must be specified. That is obtained
          from calling make_dashboard.

          This tool can be called many times for one dashboard_id
          and the resulting tiles will be added in order.

Reference

fieldtyperequireddescription
kindstringtrueMust be “looker-add-dashboard-element”
sourcestringtrueName of the source the SQL should execute on.
descriptionstringtrueDescription of the tool that is passed to the LLM.