dbt_build
Execute a comprehensive dbt build process to run seeds, snapshots, models, and tests in the correct order for complete project deployment and component validation.
Instructions
Run build command (seeds, tests, snapshots, and models). An AI agent should use this tool when it needs to execute a comprehensive build process that runs seeds, snapshots, models, and tests in the correct order. This is ideal for complete project deployment or ensuring all components work together.
Returns:
Output from the dbt build command as text (this command does not support JSON output format)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
exclude | No | Models to exclude | |
full_refresh | No | Whether to perform a full refresh | |
models | No | Specific models to build, using the dbt selection syntax | |
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 '.') | . |
selector | No | Named selector to use |
Input Schema (JSON Schema)
{
"properties": {
"exclude": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Models to exclude",
"title": "Exclude"
},
"full_refresh": {
"default": false,
"description": "Whether to perform a full refresh",
"title": "Full Refresh",
"type": "boolean"
},
"models": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Specific models to build, using the dbt selection syntax",
"title": "Models"
},
"profiles_dir": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Directory containing the profiles.yml file (defaults to project_dir if not specified)",
"title": "Profiles Dir"
},
"project_dir": {
"default": ".",
"description": "ABSOLUTE PATH to the directory containing the dbt project (e.g. '/Users/username/projects/dbt_project' not '.')",
"title": "Project Dir",
"type": "string"
},
"selector": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Named selector to use",
"title": "Selector"
}
},
"title": "dbt_buildArguments",
"type": "object"
}