bazel_list_targets
Retrieve all Bazel targets within a specified workspace path using the MCP server. Specify a path (e.g., '//path/to') and optional command-line arguments to streamline target listing for build and test workflows.
Instructions
List all available Bazel targets under a given path
Input Schema
Name | Required | Description | Default |
---|---|---|---|
additionalArgs | No | Additional Bazel command line arguments (e.g. ['--output=build', '--keep_going']) | |
path | Yes | Path within the workspace to list targets for (e.g. '//path/to' or '//' for all targets) |
Input Schema (JSON Schema)
{
"properties": {
"additionalArgs": {
"description": "Additional Bazel command line arguments (e.g. ['--output=build', '--keep_going'])",
"items": {
"type": "string"
},
"type": "array"
},
"path": {
"description": "Path within the workspace to list targets for (e.g. '//path/to' or '//' for all targets)",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}