Back to Genai Toolbox

looker-get-project-file

docs/en/integrations/looker/tools/looker-get-project-file.md

1.1.01.2 KB
Original Source

About

A looker-get-project-file tool returns the contents of a LookML file.

looker-get-project-file accepts a project_id parameter and a file_path parameter.

Compatible Sources

{{< compatible-sources >}}

Example

yaml
kind: tool
name: get_project_file
type: looker-get-project-file
source: looker-source
description: |
  This tool retrieves the raw content of a specific LookML file from within a project.

  Parameters:
  - project_id (required): The unique ID of the LookML project, obtained from `get_projects`.
  - file_path (required): The path to the LookML file within the project,
    typically obtained from `get_project_files`.

  Output:
  The raw text content of the specified LookML file.

Reference

fieldtyperequireddescription
typestringtrueMust be "looker-get-project-file".
sourcestringtrueName of the source Looker instance.
descriptionstringtrueDescription of the tool that is passed to the LLM.