Back to Genai Toolbox

looker-create-project-file

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

1.1.01.4 KB
Original Source

About

A looker-create-project-file tool creates a new LookML file in a project

looker-create-project-file accepts a project_id parameter and a file_path parameter as well as the file content.

Compatible Sources

{{< compatible-sources >}}

Example

yaml
kind: tool
name: create_project_file
type: looker-create-project-file
source: looker-source
description: |
  This tool creates a new LookML file within a specified project, populating
  it with the provided content.

  Prerequisite: The Looker session must be in Development Mode. Use `dev_mode: true` first.

  Parameters:
  - project_id (required): The unique ID of the LookML project.
  - file_path (required): The desired path and filename for the new file within the project.
  - content (required): The full LookML content to write into the new file.

  Output:
  A confirmation message upon successful file creation.

Reference

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