bazel_query_target
Analyze and retrieve specific targets from the Bazel dependency graph using query patterns and optional command-line arguments for detailed insights.
Instructions
Query the Bazel dependency graph for targets matching a pattern
Input Schema
Name | Required | Description | Default |
---|---|---|---|
additionalArgs | No | Additional Bazel command line arguments (e.g. ['--output=label_kind', '--noimplicit_deps']) | |
pattern | Yes | Bazel query pattern (e.g. 'deps(//path/to:target)') |
Input Schema (JSON Schema)
{
"properties": {
"additionalArgs": {
"description": "Additional Bazel command line arguments (e.g. ['--output=label_kind', '--noimplicit_deps'])",
"items": {
"type": "string"
},
"type": "array"
},
"pattern": {
"description": "Bazel query pattern (e.g. 'deps(//path/to:target)')",
"type": "string"
}
},
"required": [
"pattern"
],
"type": "object"
}