IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/bazel_module_tags

You can read about the migration, and let us know what you think.

Extensions > API reference > bazel_module_tags

bazel_module_tags

Contains the tags in a module for the module extension currently being processed. This object has a field for each tag class of the extension, and the value of the field is a list containing an object for each tag instance. This "tag instance" object in turn has a field for each attribute of the tag class.