> For the complete documentation index, see [llms.txt](https://docs.pixiebrix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pixiebrix.com/developing-mods/developer-concepts/variables-and-data-context/referencing-variables-in-brick-configuration.md).

# Referencing Variables in Brick Configuration

### Variable References

Variables are referenced using `@` in front of the variable name. For example, a local variable `myVariable` is referenced as `@myVariable`.

### Using Autosuggest

In the Page Editor, when you type `@` into a field, the Page Editor will display the variable autocomplete popover:

<figure><img src="https://2274778196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq123bF1HPQPV35s5vHa1%2Fuploads%2FnX49pMsNr7oI6Cyp2hI9%2FUntitled%20(82).png?alt=media&amp;token=8929c547-9ff8-46be-a033-5e1f0179f1de" alt=""><figcaption></figcaption></figure>

The variable popover automatically filters/expands based on the variable name under the cursor. For example, for to filter for `@form`

<figure><img src="https://2274778196-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fq123bF1HPQPV35s5vHa1%2Fuploads%2F3IwBHj9D2C66WFPmzgE0%2FUntitled%20(84).png?alt=media&amp;token=fdf8a5bb-44a8-4ad6-b4b4-ac934d6b4da2" alt=""><figcaption><p>Filtering available variables based on text</p></figcaption></figure>

Alternatively, you can click the carat to expand into an object and see specific fields that exist within that object.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.pixiebrix.com/developing-mods/developer-concepts/variables-and-data-context/referencing-variables-in-brick-configuration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
