> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usebruno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Folder Variables

Folder variables are variables that are scoped to a specific folder. They are useful for storing variables that are used across multiple requests in a folder.

## Creating a Folder Variable

* Go to Folder Settings (can be accessed from dropdown menu of the folder in the sidebar)
* Go to Vars Tab
* Add your variable name, value, and an optional description for what the variable represents in the Pre Request Vars section
* Save your changes

![Folder Variables](https://mintcdn.com/bruno-a6972042/KbpwWkeN627E4ypz/images/screenshots/variables/folder-variables.webp?fit=max\&auto=format\&n=KbpwWkeN627E4ypz\&q=85\&s=3dcd4e8c22fd01c9e91c0631b1d400b4)

## Using a Folder Variable

You can use the `{{varName}}` syntax to use a folder variable in a request.

![Folder Variables Usage](https://mintcdn.com/bruno-a6972042/KbpwWkeN627E4ypz/images/screenshots/variables/folder-variables-usage.webp?fit=max\&auto=format\&n=KbpwWkeN627E4ypz\&q=85\&s=3720c4cfeecd05d8fbb7e902b0d95c8e)

#### Access Folder Variable inside scripts

You can also use the `bru.getFolderVar()` function to get the value of a folder variable and use it inside your scripts.

```javascript theme={null}
let bearerToken = bru.getFolderVar("bearerToken");
```
