dbt_ls
Discover and list dbt project resources, including models, tests, and sources, to analyze project structure, dependencies, and select specific resources for operations.
Instructions
List dbt resources. An AI agent should use this tool when it needs to discover available models, tests, sources, and other resources within a dbt project. This helps the agent understand the project structure, identify dependencies, and select specific resources for other operations like running or testing.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
exclude | No | Models to exclude | |
models | No | Specific models to list, using the dbt selection syntax. Note that you probably want to specify your selection here e.g. silver.fact | |
output_format | No | Output format (json, name, path, or selector) | json |
profiles_dir | No | Directory containing the profiles.yml file (defaults to project_dir if not specified) | |
project_dir | No | ABSOLUTE PATH to the directory containing the dbt project (e.g. '/Users/username/projects/dbt_project' not '.') | . |
resource_type | No | Type of resource to list (model, test, source, etc.) | |
selector | No | Named selector to use | |
verbose | No | Return full JSON output instead of simplified version |