> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/variables/localvariables/localvariables/localvariables.list.md).

# LocalVariables.list()

Returns the list of all local variables.

`list() →` [`APIList`](/glider-ide/api/iterables/apilist.md)`[`[`LocalVariable`](/glider-ide/api/localvariable.md)`]`&#x20;

## Query Example

```python
from glider import *


def query():
  functions = (
    Functions()
    .with_name("communityMint")
    .exec(1)
  )

  for func in functions:
    local_vars = func.local_variables().list()
    for local_var in local_vars:
      print(local_var.source_code())

  return functions
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FBABftWeNDCWFdEp9coJx%2FScreenshot%202025-09-10%20at%204.02.15%E2%80%AFPM.png?alt=media&amp;token=e977f024-e68c-4b22-9216-0fa6d97e8782" alt=""><figcaption></figcaption></figure>
