> ## Documentation Index
> Fetch the complete documentation index at: https://bazel-pr-30006.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# subrule_ctx

A context object passed to the implementation function of a subrule.

## Members

* [actions](#actions)
* [fragments](#fragments)
* [label](#label)
* [toolchains](#toolchains)

## actions

```
actions subrule_ctx.actions
```

Contains methods for declaring output files and the actions that produce them

## fragments

```
fragments subrule_ctx.fragments
```

Allows access to configuration fragments in target configuration.

## label

```
Label subrule_ctx.label
```

The label of the target currently being analyzed

## toolchains

```
ToolchainContext subrule_ctx.toolchains
```

Contains methods for declaring output files and the actions that produce them
