Back to Genai Toolbox

looker-run-look

docs/en/integrations/looker/tools/looker-run-look.md

1.1.01.1 KB
Original Source

About

The looker-run-look tool runs the query associated with a saved Look.

looker-run-look takes one parameter, the look_id.

Compatible Sources

{{< compatible-sources >}}

Example

yaml
kind: tool
name: run_look
type: looker-run-look
source: looker-source
description: |
  This tool executes the query associated with a saved Look and
  returns the resulting data in a JSON structure.

  Parameters:
  - look_id (required): The unique identifier of the Look to run,
    typically obtained from the `get_looks` tool.

  Output:
  The query results are returned as a JSON object.

Reference

fieldtyperequireddescription
typestringtrueMust be "looker-run-look"
sourcestringtrueName of the source the SQL should execute on.
descriptionstringtrueDescription of the tool that is passed to the LLM.